diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-13 21:22:49 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-13 21:22:49 +0000 |
commit | 183c4345af15d6cf8e60ba079a1da9108294ffe2 (patch) | |
tree | 9151c91a9d16c4519a52e65f70db1c0ade964e87 /package | |
parent | 9b995a2763b292107f05573f71ea135d5c974a40 (diff) |
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')
-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]++; } |