Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #228: imr-setmode-delay-patch.diff

File imr-setmode-delay-patch.diff, 0.7 kB (added by imr1@waikato.ac.nz, 14 years ago)

More focused fix, which is much less likely to break other areas.

  • net80211/ieee80211_wireless.c

    old new  
    4848#include <linux/utsname.h> 
    4949#include <linux/if_arp.h>               /* XXX for ARPHRD_ETHER */ 
    5050#include <net/iw_handler.h> 
     51#include <linux/delay.h> 
    5152 
    5253#if WIRELESS_EXT < 14 
    5354#error "Wireless extensions v14 or better is needed." 
     
    16171618                vap->iv_des_mode = mode; 
    16181619                if (IS_UP_AUTO(vap)) { 
    16191620                        ieee80211_cancel_scan(vap); 
     1621                        while((ic->ic_flags & IEEE80211_F_SCAN) != 0) mdelay(1); 
    16201622                        ieee80211_new_state(vap, IEEE80211_S_SCAN, 0); 
    16211623                } 
    16221624                retv = 0;