diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-08-13 21:22:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-08-13 21:22:49 +0000 |
commit | 75fbcaf4339e45daafd7cb746dad1fec3212ff1d (patch) | |
tree | 6db971c2e433828f1e8775de767656b9392f9dd6 /openwrt/package/wificonf/wificonf.c | |
parent | b55196fba2d7768e60f7fd44fe7dbb3d82702413 (diff) | |
download | mtk-20170518-75fbcaf4339e45daafd7cb746dad1fec3212ff1d.zip mtk-20170518-75fbcaf4339e45daafd7cb746dad1fec3212ff1d.tar.gz mtk-20170518-75fbcaf4339e45daafd7cb746dad1fec3212ff1d.tar.bz2 |
add wificonf fix from whiterussian
SVN-Revision: 1646
Diffstat (limited to 'openwrt/package/wificonf/wificonf.c')
-rw-r--r-- | openwrt/package/wificonf/wificonf.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c index abf5230..b76f697 100644 --- a/openwrt/package/wificonf/wificonf.c +++ b/openwrt/package/wificonf/wificonf.c @@ -474,10 +474,15 @@ static int setup_interfaces(int skfd, char *ifname, char *args[], int count) if(iw_get_ext(skfd, ifname, SIOCGIWNAME, &wrq) < 0) return 0; - stop_bcom(skfd, ifname); - set_wext_mode(skfd, ifname); - setup_bcom(skfd, ifname); - setup_wext(skfd, ifname); + if (strncmp(ifname, "ath", 3) == 0) { + set_wext_mode(skfd, ifname); + setup_wext(skfd, ifname); + } else { + stop_bcom(skfd, ifname); + set_wext_mode(skfd, ifname); + setup_bcom(skfd, ifname); + setup_wext(skfd, ifname); + } prefix[2]++; } |