Bug 976944 - Update softap parameters for kk. r=vchang

This commit is contained in:
Kai-Zhen Li 2014-02-26 14:41:42 +08:00
parent eb1df0a6bc
commit a96d2f772e

View File

@ -441,13 +441,28 @@ void NetworkUtils::stopAccessPointDriver(CommandChain* aChain,
* argv[3] - SSID
* argv[4] - Security
* argv[5] - Key
*
* Command format for sdk version >= 18
* Arguments:
* argv[2] - wlan interface
* argv[3] - SSID
* argv[4] - Broadcast/Hidden
* argv[5] - Channel
* argv[6] - Security
* argv[7] - Key
*/
void NetworkUtils::setAccessPoint(CommandChain* aChain,
CommandCallback aCallback,
NetworkResultOptions& aResult)
{
char command[MAX_COMMAND_SIZE];
if (SDK_VERSION >= 16) {
if (SDK_VERSION >= 19) {
snprintf(command, MAX_COMMAND_SIZE - 1, "softap set %s \"%s\" broadcast 6 %s \"%s\"",
GET_CHAR(mIfname),
GET_CHAR(mSsid),
GET_CHAR(mSecurity),
GET_CHAR(mKey));
} else if (SDK_VERSION >= 16) {
snprintf(command, MAX_COMMAND_SIZE - 1, "softap set %s \"%s\" %s \"%s\"",
GET_CHAR(mIfname),
GET_CHAR(mSsid),