From: Felix Fietkau Date: Sat, 13 Aug 2005 21:22:49 +0000 (+0000) Subject: add wificonf fix from whiterussian X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=75fbcaf4339e45daafd7cb746dad1fec3212ff1d;p=openwrt%2Fstaging%2Fadrian.git add wificonf fix from whiterussian SVN-Revision: 1646 --- diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c index abf5230e07..b76f697b84 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]++; }