mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 976944 - Update softap parameters for kk. r=vchang
This commit is contained in:
parent
eb1df0a6bc
commit
a96d2f772e
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user