From 75cd2788fac2d09a1b3c698645714e8e0f2f6c8f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 20 Jul 2005 18:56:47 +0000 Subject: [PATCH] add country code setting to wificonf SVN-Revision: 1502 --- openwrt/package/wificonf/wificonf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c index 4856687b47..24a9c2fe11 100644 --- a/openwrt/package/wificonf/wificonf.c +++ b/openwrt/package/wificonf/wificonf.c @@ -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; -- 2.30.2