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:
Mahesh A Saptasagar
2013-12-03 16:35:15 +05:30
committed by Gerrit - the friendly Code Review server
parent fc7138812d
commit 2addd175cc
2 changed files with 6 additions and 1 deletions

View File

@@ -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) {