mwifiex: fix a cut-n-paste error in adhoc-start
authorBing Zhao <bzhao@marvell.com>
Sat, 12 Jul 2014 03:54:32 +0000 (20:54 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Jul 2014 20:00:06 +0000 (16:00 -0400)
The 'else if' branch never gets the chance as its condition
matches 'if' branch's.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/join.c

index fc135649b85f4ebc63edfb0b2b2f7c4d9871ef98..0b977ea1cddb599b9493627269d16402b9470a24 100644 (file)
@@ -949,7 +949,7 @@ mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv,
                                chan_tlv->chan_scan_param[0].radio_type |=
                                        (IEEE80211_HT_PARAM_CHA_SEC_ABOVE << 4);
                        else if (adapter->sec_chan_offset ==
-                                           IEEE80211_HT_PARAM_CHA_SEC_ABOVE)
+                                           IEEE80211_HT_PARAM_CHA_SEC_BELOW)
                                chan_tlv->chan_scan_param[0].radio_type |=
                                        (IEEE80211_HT_PARAM_CHA_SEC_BELOW << 4);
                }