Skip to content

Commit

Permalink
wifi: Use static wifi country code to fix 5gHz AP
Browse files Browse the repository at this point in the history
  • Loading branch information
xyyx committed Apr 15, 2018
1 parent b801e11 commit 2118243
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions overlay/common/frameworks/base/core/res/res/values/config.xml
Expand Up @@ -80,4 +80,8 @@
<string-array name="config_ephemeralResolverPackage">
<item>com.google.android.gms</item>
</string-array>

<!-- Boolean indicating whether or not to revert to default country code when cellular
radio is unable to find any MCC information to infer wifi country code from -->
<bool translatable="false" name="config_wifi_revert_country_code_on_cellular_loss">true</bool>
</resources>
2 changes: 2 additions & 0 deletions prebuilt/common/init.d/init.d.rc
Expand Up @@ -41,6 +41,8 @@ on boot
chown system system /sys/module/lowmemorykiller/parameters/minfree
chmod 0644 /sys/module/lowmemorykiller/parameters/minfree

setprop ro.boot.wificountrycode US

# Disable ril services if noril prop is set
on property:ro.radio.noril=1
stop ril-daemon
Expand Down
2 changes: 2 additions & 0 deletions sepolicy/property.te
@@ -1 +1,3 @@
type adbtcp_prop, property_type;
type wifi_region_prop, property_type;

1 change: 1 addition & 0 deletions sepolicy/property_contexts
@@ -1 +1,2 @@
adb.network.port u:object_r:adbtcp_prop:s0
boot.wificountrycode u:object_r:wifi_region_prop:s0

0 comments on commit 2118243

Please sign in to comment.