projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b5e612
)
fix setting gmode, when wl0_gmode is unset
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 4 Jul 2005 18:22:07 +0000
(18:22 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 4 Jul 2005 18:22:07 +0000
(18:22 +0000)
SVN-Revision: 1336
openwrt/package/wificonf/wificonf.c
patch
|
blob
|
history
diff --git
a/openwrt/package/wificonf/wificonf.c
b/openwrt/package/wificonf/wificonf.c
index 79606a895d08eee742851c2b8ab53328282e2fb8..519596c197532087f0434b67136146c278cb3244 100644
(file)
--- a/
openwrt/package/wificonf/wificonf.c
+++ b/
openwrt/package/wificonf/wificonf.c
@@
-270,9
+270,14
@@
void setup_bcom(int skfd, char *ifname)
int override = WLC_G_PROTECTION_OFF;
int control = WLC_G_PROTECTION_CTL_OFF;
- val = atoi(nvram_safe_get(wl_var("gmode")));
+ if (v = nvram_get(wl_var("gmode")))
+ val = atoi(v);
+ else
+ val = 1;
+
if (val > 5)
val = 1;
+
bcom_ioctl(skfd, ifname, WLC_SET_GMODE, &val, sizeof(val));
if (nvram_match(wl_var("gmode_protection"), "auto")) {