mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
add wificonf fix from whiterussian
SVN-Revision: 1646
This commit is contained in:
parent
b55196fba2
commit
75fbcaf433
@ -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)
|
if(iw_get_ext(skfd, ifname, SIOCGIWNAME, &wrq) < 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
stop_bcom(skfd, ifname);
|
if (strncmp(ifname, "ath", 3) == 0) {
|
||||||
set_wext_mode(skfd, ifname);
|
set_wext_mode(skfd, ifname);
|
||||||
setup_bcom(skfd, ifname);
|
setup_wext(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]++;
|
prefix[2]++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user