浏览代码

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

Signed-off-by: Manny Vindiola <mannyv@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Manny Vindiola 8 年之前
父节点
当前提交
8cd924a295
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/wlan-ng/hfa384x.h

+ 1 - 1
drivers/staging/wlan-ng/hfa384x.h

@@ -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 {