wlan: Provision to accept Channel List for SAP Auto Channel Selection
Currently with the existing implemententation we can give oly Channel
Range but not list of Channels.
New Private IOCTL implemented to configure Channel List
SET_SAP_CHANNEL_LIST No Of Channels Channel List separated by Spaces
e.g)"SET_SAP_CHANNEL_LIST 3 1 6 11" -> This Should be a String
3 -> Number of Channels [1, 6 and 11]
Change-Id: I025e4ed3bfa68fc9aa0f9c5401c55ba86250ce33
CR-Fixed: 401888
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index d004184..ee67550 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -434,6 +434,19 @@
"%s: SME Change Country code fail ret=%d\n",__func__, ret);
}
+ }
+ /*
+ command should be a string having format
+ SET_SAP_CHANNEL_LIST <num of channels> <the channels seperated by spaces>
+ */
+ else if(strncmp(priv_data.buf, "SET_SAP_CHANNEL_LIST", 20) == 0)
+ {
+ tANI_U8 *ptr = (tANI_U8*)priv_data.buf;
+
+ VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO,
+ " Received Command to Set Preferred Channels for SAP in %s", __FUNCTION__);
+
+ ret = sapSetPreferredChannel(dev,ptr);
}
}
exit:
@@ -3277,19 +3290,19 @@
pr_info("%s: WCNSS hardware version %s\n",
WLAN_MODULE_NAME, versionString);
- /* 1.Check if FW version is greater than 0.1.1.0. Only then send host-FW capability exchange message
- 2.Host-FW capability exchange message is only present on riva 1.1 so
+ /* 1.Check if FW version is greater than 0.1.1.0. Only then send host-FW capability exchange message
+ 2.Host-FW capability exchange message is only present on riva 1.1 so
send the message only if it the riva is 1.1
minor numbers for different riva branches:
0 -> (1.0)Mainline Build
1 -> (1.1)Mainline Build
2->(1.04) Stability Build
*/
- if (((versionReported.major>0) || (versionReported.minor>1) ||
+ if (((versionReported.major>0) || (versionReported.minor>1) ||
((versionReported.minor>=1) && (versionReported.version>=1)))
&& ((versionReported.major == 1) && (versionReported.minor >= 1)))
fwFeatCapsMsgSupported = 1;
-
+
if (fwFeatCapsMsgSupported)
sme_featureCapsExchange(pHddCtx->hHal);
@@ -4770,7 +4783,7 @@
return VOS_STATUS_E_ALREADY;
}
- /* when WLAN driver is statically linked, then invoke SSR by sending
+ /* when WLAN driver is statically linked, then invoke SSR by sending
* the reset interrupt. If it is DLKM, then use restart API
*/
#ifdef MODULE
@@ -4778,7 +4791,7 @@
#else
wcnss_reset_intr();
#endif
-
+
return status;
}