wlan: Configure SoftAp via NDC commands.
-Added support for N-only, G-only and 11g profiles -Added support to configure country and 11d info to hostapd.conf file -Added support to enable and disable softap via NDC command Change-Id: Iac22893eaae50d2144aa2ad539f1e99fdfdfe2e2
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
#undef WIFI_DRIVER_MODULE_ARG
|
||||
#endif
|
||||
|
||||
#define WIFI_DRIVER_MODULE_ARG "con_mode=1"
|
||||
#define WIFI_DRIVER_MODULE_ARG ""
|
||||
|
||||
/* WIFI_SDIO_IF_DRIVER_MODULE_NAME must be defined if sdioif driver required */
|
||||
#ifdef WIFI_SDIO_IF_DRIVER_MODULE_NAME
|
||||
@@ -185,8 +185,6 @@ s32 wifi_qsap_load_driver(void)
|
||||
s32 ret = 0;
|
||||
s32 retry;
|
||||
|
||||
/* Unload the station mode driver first */
|
||||
wifi_qsap_unload_wifi_sta_driver();
|
||||
|
||||
if (system(SDIO_POLLING_ON)) {
|
||||
LOGE("Could not turn on the polling...");
|
||||
@@ -265,43 +263,6 @@ void qsap_send_module_down_indication(void)
|
||||
}
|
||||
}
|
||||
|
||||
s32 wifi_qsap_unload_wifi_sta_driver(void)
|
||||
{
|
||||
s32 ret = 0;
|
||||
|
||||
if(system(SDIO_POLLING_ON)) {
|
||||
LOGE("Could not turn on the polling...");
|
||||
}
|
||||
|
||||
if ( check_driver_loaded(WIFI_DRIVER_MODULE_NAME " ") ) {
|
||||
qsap_send_module_down_indication();
|
||||
if ( rmmod(WIFI_DRIVER_MODULE_NAME) ) {
|
||||
LOGE("Unable to unload the station mode wifi driver...\n");
|
||||
ret = 1;
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
sched_yield();
|
||||
|
||||
#ifdef WIFI_SDIO_IF_DRIVER_MODULE_NAME
|
||||
if ( check_driver_loaded(WIFI_SDIO_IF_DRIVER_MODULE_NAME " ") ) {
|
||||
if ( rmmod(WIFI_SDIO_IF_DRIVER_MODULE_NAME) ) {
|
||||
LOGE("Unable to unload the station mode librasdioif driver\n");
|
||||
ret = 1;
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
end:
|
||||
if(system(SDIO_POLLING_OFF)) {
|
||||
LOGE("Could not turn off the polling...");
|
||||
}
|
||||
sched_yield();
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 wifi_qsap_unload_driver()
|
||||
{
|
||||
s32 ret = eSUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user