wifi: Fix softAP turn-ON issue in statically loaded driver

SoftAP fails to turn-ON on some statically loaded driver
models in which the network interfaces are not available
until the firmware is reloaded in the AP mode. This change
provides the fix to load the firmware earlier in the softAP
start sequence to make wlan0 interface available.

b/22236507

Change-Id: If2c4b28c704bc6e5acb2be70d5d9d84d6e98f747
This commit is contained in:
Ravi Joshi
2015-06-29 11:52:36 -07:00
committed by xinhe
parent 61d7acae0c
commit 593e8da3df

View File

@@ -1473,7 +1473,6 @@ public class NetworkManagementService extends INetworkManagementService.Stub
WifiConfiguration wifiConfig, String wlanIface) {
mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG);
try {
wifiFirmwareReload(wlanIface, "AP");
if (wifiConfig == null) {
mConnector.execute("softap", "set", wlanIface);
} else {