- 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);
+ }