aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-18 21:39:10 +0200
committerJouni Malinen <j@w1.fi>2011-11-18 21:39:10 +0200
commita40e9d3e3ddb3f9dbcb3729e1e0dc1cabf8376bf (patch)
treeea248ede53f9f464ec060671372b7af843d20cf4 /src/common
parent4740d5b9d9052b70cd680ac0208bc4768262140f (diff)
downloadexternal_wpa_supplicant_8_ti-a40e9d3e3ddb3f9dbcb3729e1e0dc1cabf8376bf.zip
external_wpa_supplicant_8_ti-a40e9d3e3ddb3f9dbcb3729e1e0dc1cabf8376bf.tar.gz
external_wpa_supplicant_8_ti-a40e9d3e3ddb3f9dbcb3729e1e0dc1cabf8376bf.tar.bz2
Remove incorrect le16 type cast
HT_INFO_OPERATION_MODE_OP_MODE_MASK is used with variables in host byte order, so it should not be claimed as le16. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ieee802_11_defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h
index 4cbc535..3014762 100644
--- a/src/common/ieee802_11_defs.h
+++ b/src/common/ieee802_11_defs.h
@@ -618,7 +618,7 @@ struct ieee80211_ht_operation {
#define OP_MODE_MIXED 3
#define HT_INFO_OPERATION_MODE_OP_MODE_MASK \
- ((le16) (0x0001 | 0x0002))
+ (0x0001 | 0x0002)
#define HT_INFO_OPERATION_MODE_OP_MODE_OFFSET 0
#define HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT ((u8) BIT(2))
#define HT_INFO_OPERATION_MODE_TRANSMIT_BURST_LIMIT ((u8) BIT(3))