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 | 8ae4aaf2a6987ff9e837426de43806bed56fd4e1 (patch) | |
tree | 9151c91a9d16c4519a52e65f70db1c0ade964e87 /package/wificonf | |
parent | 227b96f7651482d525c7bb82e0f392467ae2bf69 (diff) | |
download | master-187ad058-8ae4aaf2a6987ff9e837426de43806bed56fd4e1.tar.gz master-187ad058-8ae4aaf2a6987ff9e837426de43806bed56fd4e1.tar.bz2 master-187ad058-8ae4aaf2a6987ff9e837426de43806bed56fd4e1.zip |
add wificonf fix from whiterussian
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1646 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/wificonf')
-rw-r--r-- | package/wificonf/wificonf.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/package/wificonf/wificonf.c b/package/wificonf/wificonf.c index abf5230e07..b76f697b84 100644 --- a/package/wificonf/wificonf.c +++ b/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]++; } |