add country code setting to wificonf
authorFelix Fietkau <nbd@openwrt.org>
Wed, 20 Jul 2005 18:56:47 +0000 (18:56 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 20 Jul 2005 18:56:47 +0000 (18:56 +0000)
SVN-Revision: 1502

openwrt/package/wificonf/wificonf.c

index 4856687b47257b81e62cd491e506b17e31c17f2b..24a9c2fe11a23fc37568eb8a6438f379d5da3391 100644 (file)
@@ -176,6 +176,11 @@ void setup_bcom(int skfd, char *ifname)
                return;
        
        stop_bcom(skfd, ifname);
+
+       /* Set Country */
+       strncpy(buf, nvram_safe_get(wl_var("country_code")), 4);
+       buf[3] = 0;
+       bcom_ioctl(skfd, ifname, 273, buf, 4);
        
        /* Set up afterburner */
        val = ABO_AUTO;