Skip to contentSkip to conversation

Staging: wlan-ng: hfa384x.h: Fix endianness warning for hfa384x_ps_user_count

PATCH New Manny Vindiola 1 participant 1 message Jul 26, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: wlan-ng: hfa384x.h: Fix endianness warning for hfa384x_ps_user_count

The field in hfa384x_ps_user_count was defined as u16 but used as __le16 Changed type to __le16 for consistency

---
 drivers/staging/wlan-ng/hfa384x.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wlan-ng/hfa384x.h +1 -1
index 9837a59..3b18e57 100644
@@ -739,7 +739,7 @@ struct hfa384x_auth_request {
 /*--  Unsolicited Frame, MAC Mgmt: PSUserCount (AP Only) --*/
 
 struct hfa384x_ps_user_count {
-	u16 usercnt;
+	__le16 usercnt;
 } __packed;
 
 struct hfa384x_key_id_changed {
Signature · 1 line
2.7.4