projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b5759b
)
add country code setting to wificonf
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 20 Jul 2005 18:56:47 +0000
(18:56 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 20 Jul 2005 18:56:47 +0000
(18:56 +0000)
SVN-Revision: 1502
openwrt/package/wificonf/wificonf.c
patch
|
blob
|
history
diff --git
a/openwrt/package/wificonf/wificonf.c
b/openwrt/package/wificonf/wificonf.c
index 4856687b47257b81e62cd491e506b17e31c17f2b..24a9c2fe11a23fc37568eb8a6438f379d5da3391 100644
(file)
--- 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;