wlan: Don't overwrite the channel configured in hostapd.conf
When SAP is turned on through GUI, hostapd.conf file will be overwritten by the framework parameters.Since in Kit-Kat framework,channel value is hard coded to 6, same is getting over written whenever we turn on SAP through GUI, this will cause SAP to come up always on channel 6. To mitigate this issue, avoid overwriting the channel parameter in hostap.conf file by ignoring the channel parameter from the framework. Change-Id: I4d87cf70868ad705f63211b2bd10ac2a67646d09 CRs-Fixed: 584112
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
fc7138812d
commit
2addd175cc
@@ -12,6 +12,10 @@ LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS += -DSDK_VERSION=\"0.0.1.0\"
|
||||
|
||||
ifeq ($(PLATFORM_VERSION),4.4)
|
||||
LOCAL_CFLAGS += -DANDROID_VERSION_KITKAT
|
||||
endif
|
||||
|
||||
ifdef WIFI_DRIVER_MODULE_PATH
|
||||
LOCAL_CFLAGS += -DWIFI_DRIVER_MODULE_PATH=\"$(WIFI_DRIVER_MODULE_PATH)\"
|
||||
endif
|
||||
|
||||
@@ -3094,6 +3094,7 @@ int qsapsetSoftap(int argc, char *argv[])
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
#ifndef ANDROID_VERSION_KITKAT
|
||||
/** channel */
|
||||
rlen = RECV_BUF_LEN;
|
||||
if(argc > 5) {
|
||||
@@ -3105,7 +3106,7 @@ int qsapsetSoftap(int argc, char *argv[])
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
/** Security */
|
||||
rlen = RECV_BUF_LEN;
|
||||
if(argc > 6) {
|
||||
|
||||
Reference in New Issue
Block a user