From b7f0224603466a35f1f8b21e9b5e88288b01f7b8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 13 Aug 2005 21:18:41 +0000 Subject: [PATCH] add fix for wificonf anf madwifi SVN-Revision: 1643 --- openwrt/package/wificonf/wificonf.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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]++; } -- 2.30.2