Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1696741
| From | Manny Vindiola <mannyv@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] Staging: wlan-ng: hfa384x.h: Fix endianness warning for hfa384x_ps_user_count |
| Date | 2017-07-26 04:50 +0200 |
| Message-ID | <u7kyC-2T2-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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>
---
drivers/staging/wlan-ng/hfa384x.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h
index 9837a59..3b18e57 100644
--- a/drivers/staging/wlan-ng/hfa384x.h
+++ b/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 {
--
2.7.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] Staging: wlan-ng: hfa384x.h: Fix endianness warning for hfa384x_ps_user_count Manny Vindiola <mannyv@gmail.com> - 2017-07-26 04:50 +0200
csiph-web