diff options
author | Xinming Hu <huxm@marvell.com> | 2015-07-22 04:53:42 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-08-06 10:13:46 +0300 |
commit | 3afafd6dcc0cb894a2a6cc1a42bb6f84a0519f16 (patch) | |
tree | 1f407f35963323a980f805da3d1aef9cb17b0a0a /drivers/net/wireless/mwifiex | |
parent | d70d848a75fd65b28835a843bcc4faec2f5803ea (diff) | |
download | talos-obmc-linux-3afafd6dcc0cb894a2a6cc1a42bb6f84a0519f16.tar.gz talos-obmc-linux-3afafd6dcc0cb894a2a6cc1a42bb6f84a0519f16.zip |
mwifiex: using right aid value for tdls action frame
Variable pos is u8 here, so memcpy is needed to store u16 aid.
At the same time, aid should be platform independent, upper layer
utility(wpa_supplicant,etc.,) parse it as le16, so keep it le16
here.
Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r-- | drivers/net/wireless/mwifiex/tdls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/tdls.c b/drivers/net/wireless/mwifiex/tdls.c index aa3d3c5ed07b..b3e163de9899 100644 --- a/drivers/net/wireless/mwifiex/tdls.c +++ b/drivers/net/wireless/mwifiex/tdls.c @@ -164,7 +164,7 @@ static void mwifiex_tdls_add_aid(struct mwifiex_private *priv, pos = (void *)skb_put(skb, 4); *pos++ = WLAN_EID_AID; *pos++ = 2; - *pos++ = le16_to_cpu(assoc_rsp->a_id); + memcpy(pos, &assoc_rsp->a_id, sizeof(assoc_rsp->a_id)); return; } |