net: wireless: sd8797: Fix (re)association issue
Nitin Bindal [Thu, 24 May 2012 14:15:28 +0000 (19:15 +0530)]
Fix the issue -
When device connects to 2GHz AP, it does not scan
APs in 5GHz and vice-versa.

Bug 968022

Change-Id: I5dfddf4e73260cb1e03bd3d28c029503507cd898
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/104482
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/net/wireless/sd8797/mlinux/moal_sta_cfg80211.c

index ed44cde..8a60be2 100644 (file)
@@ -1082,7 +1082,7 @@ woal_cfg80211_assoc(moal_private * priv, void *sme)
         goto done;
     }
 
-    if (channel) {
+    if (mode == MLAN_BSS_MODE_IBSS && channel) {
         /* Get the secondary channel offset */
         req = woal_alloc_mlan_ioctl_req(sizeof(mlan_ds_radio_cfg));
         if (req == NULL) {