Changeset 2170


Ignore:
Timestamp:
Sep 19, 2012, 3:25:03 PM (7 years ago)
Author:
matthijs
Message:

ra_wifi: Don't set a default country.

Before, the default country was set to Spain. However, it makes more
sense to just set no default. Additionally, this prevents wifi channels
12 and 13 from being enabled by default, which could cause problems in
countries where their use is not allowed.

References: #648

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/fonbase/files/lib/fon/config.sh

    r2169 r2170  
    360360                        uci_set "wireless" "$wifi_device" "type" "rt3052"
    361361                        uci_set "wireless" "$wifi_device" "ht" "${ht:-40}"
    362                         uci_set "wireless" "$wifi_device" "country" "${country:-ES}"
     362                        uci_set "wireless" "$wifi_device" "country" "${country}"
    363363                        uci_set "wireless" "$wifi_device" "regdom" "${regdom:-0}"
    364364                        uci_set "wireless" "$wifi_device" "mode" "$mode"
  • trunk/fon/ra_wifi/files/lib/wifi/rt3052.sh

    r2169 r2170  
    2929CountryRegion=${regdom}
    3030CountryRegionABand=7
    31 CountryCode=${country:-ES}
     31CountryCode=${country}
    3232BssidNum=2
    3333SSID1=${ssid1:-MyPlace}
  • trunk/luci/modules/admin-fon/luasrc/model/cbi/fon_wifi/main.lua

    r2169 r2170  
    118118        local c3166 = loadfile((os.getenv("LUCI_SYSROOT") or "") .. "/etc/3166en.db.lua")()
    119119        c = s:option(ListValue, "country", translate("wifi_country", "Country"))
    120         c.default = "ES"
     120        c:value("", "Unset")
    121121
    122122        -- Find out the country selected. Using formvalue makes sure that it's
Note: See TracChangeset for help on using the changeset viewer.