Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
frameworks_opt_net_wifi
Commits
5ee9d6ca
"...packages_providers_telephonyprovider.git" did not exist on "4f11e54d76630f6a007adfc1a14903714672475d"
Commit
5ee9d6ca
authored
8 years ago
by
Mark Stevens
Browse files
Options
Download
Email Patches
Plain Diff
update to duco/rk 3128-6003-6.0
parent
80dd99c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
service/java/com/android/server/wifi/WifiStateMachine.java
service/java/com/android/server/wifi/WifiStateMachine.java
+16
-3
No files found.
service/java/com/android/server/wifi/WifiStateMachine.java
View file @
5ee9d6ca
...
...
@@ -5302,6 +5302,16 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiPno
Log
.
d
(
TAG
,
"SoftAp config channel is: "
+
config
.
apChannel
);
}
if
(
true
)
{
// simple wifi ap channel select
boolean
dualBand
=
mContext
.
getResources
().
getBoolean
(
com
.
android
.
internal
.
R
.
bool
.
config_wifi_dual_band_support
);
//Log.d(TAG, "dualBand = " + dualBand + ", apBand = " + config.apBand);
if
(
dualBand
&&
config
.
apBand
!=
0
)
{
config
.
apChannel
=
153
;
}
else
{
config
.
apChannel
=
6
;
}
Log
.
d
(
TAG
,
"SoftAp config channel is: "
+
config
.
apChannel
);
}
else
{
//We need HAL support to set country code and get available channel list, if HAL is
//not available, like razor, we regress to original implementaion (2GHz, channel 6)
if
(
mWifiNative
.
isHalStarted
())
{
...
...
@@ -5346,6 +5356,7 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiPno
config
.
apBand
=
0
;
config
.
apChannel
=
6
;
}
}
// Start hostapd on a separate thread
new
Thread
(
new
Runnable
()
{
public
void
run
()
{
...
...
@@ -5996,7 +6007,7 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiPno
initializeCountryCode
();
setRandomMacOui
();
mWifiNative
.
enableAutoConnect
(
fals
e
);
mWifiNative
.
enableAutoConnect
(
tru
e
);
}
@Override
...
...
@@ -8210,7 +8221,9 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiPno
// cause the roam to faile and the device to disconnect
clearCurrentConfigBSSID
(
"L2ConnectedState"
);
try
{
// temporary disable IpReachabilityMonitor(may cause wifi disconnect problem), huweiguo
mIpReachabilityMonitor
=
null
;
/*try {
mIpReachabilityMonitor = new IpReachabilityMonitor(
mContext,
mInterfaceName,
...
...
@@ -8222,7 +8235,7 @@ public class WifiStateMachine extends StateMachine implements WifiNative.WifiPno
});
} catch (IllegalArgumentException e) {
Log.wtf("Failed to create IpReachabilityMonitor", e);
}
}
*/
}
@Override
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment