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 #94: madwifi-print-module-status.diff

File madwifi-print-module-status.diff, 1.2 kB (added by svens, 14 years ago)
  • net80211/ieee80211_scan.c

    old new  
    188188const struct ieee80211_scanner * 
    189189ieee80211_scanner_get(enum ieee80211_opmode mode) 
    190190{ 
     191        int err; 
    191192        if (mode >= IEEE80211_SCANNER_MAX) 
    192193                return NULL; 
    193         if (scanners[mode] == NULL) 
    194                 ieee80211_load_module(scan_modnames[mode]); 
     194        if (scanners[mode] == NULL) { 
     195                err = ieee80211_load_module(scan_modnames[mode]); 
     196                if(scanners[mode] == NULL || err) 
     197                        printk(KERN_WARNING "unable to load %s\n", scan_modnames[mode]); 
     198        } 
    195199        return scanners[mode]; 
    196200} 
    197201EXPORT_SYMBOL(ieee80211_scanner_get); 
  • net80211/ieee80211_linux.c

    old new  
    297297int 
    298298ieee80211_load_module(const char *modname) 
    299299{ 
    300         request_module(modname); 
    301         return 0; 
     300        return in_atomic() ? -EINVAL : request_module(modname); 
    302301} 
    303302 
    304303#ifdef CONFIG_SYSCTL