aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/11ac.c
diff options
context:
space:
mode:
authorBing Zhao <bzhao@marvell.com>2013-04-19 20:44:43 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-04-22 15:20:28 -0400
commit0648f3a4b0e9598d75e8f68f0e20874239c2cb95 (patch)
tree4fb777d501a6da2d4aff578a666aeaee3364bc80 /drivers/net/wireless/mwifiex/11ac.c
parentd033d3a6b16cc0bbd9defaa048c65cbef9feab14 (diff)
mwifiex: correct bss_mode check while appending vht operation IE
priv->bss_mode uses NL80211_IFTYPE_* definitions. HostCmd_BSS_MODE_IBSS is used in ad-hoc start/join command between driver and firmware. Coincidentally both HostCmd_BSS_MODE_IBSS and NL80211_IFTYPE_STATION are defined as 2. That explains why nobody complained. Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/11ac.c')
-rw-r--r--drivers/net/wireless/mwifiex/11ac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/11ac.c b/drivers/net/wireless/mwifiex/11ac.c
index 966a78f8e21a..5e0eec4d71c7 100644
--- a/drivers/net/wireless/mwifiex/11ac.c
+++ b/drivers/net/wireless/mwifiex/11ac.c
@@ -200,7 +200,7 @@ int mwifiex_cmd_append_11ac_tlv(struct mwifiex_private *priv,
200 200
201 /* VHT Operation IE */ 201 /* VHT Operation IE */
202 if (bss_desc->bcn_vht_oper) { 202 if (bss_desc->bcn_vht_oper) {
203 if (priv->bss_mode == HostCmd_BSS_MODE_IBSS) { 203 if (priv->bss_mode == NL80211_IFTYPE_STATION) {
204 vht_op = (struct mwifiex_ie_types_vht_oper *)*buffer; 204 vht_op = (struct mwifiex_ie_types_vht_oper *)*buffer;
205 memset(vht_op, 0, sizeof(*vht_op)); 205 memset(vht_op, 0, sizeof(*vht_op));
206 vht_op->header.type = 206 vht_op->header.type =