Changeset 2704

Show
Ignore:
Timestamp:
09/05/07 01:25:35 (3 years ago)
Author:
mickflemm
Message:
  • Return on unsupported chips during attach (leave 2424/5424 on madwifi-old-openhal for testing)
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/ath5k/ath5k_hw.c

    r2703 r2704  
    277277        hal->ah_mac_revision = AR5K_REG_MS(srev, AR5K_SREV_REV); 
    278278 
     279        /* Return on unsupported devices */ 
     280        if((srev >= AR5K_SREV_VER_AR5416) || ((srev >= AR5K_SREV_VER_AR2424) 
     281                                        && (srev < AR5K_SREV_VER_AR5413))){ 
     282                printk(KERN_ERR "ath5k: Device not supported (0x%x)\n", srev); 
     283                ret = -ENODEV; 
     284                goto err_free; 
     285        } 
     286 
    279287        switch (srev) { 
    280                 case AR5K_SREV_VER_AR2424: 
    281                 case AR5K_SREV_VER_AR5424: 
    282288                case AR5K_SREV_VER_AR5413: 
    283289                case AR5K_SREV_VER_AR5414: 
  • branches/madwifi-old-openhal/openhal/ath5k_hw.c

    r2703 r2704  
    503503        hal->ah_mac_version = AR5K_REG_MS(srev, AR5K_SREV_VER); 
    504504        hal->ah_mac_revision = AR5K_REG_MS(srev, AR5K_SREV_REV); 
     505 
     506        /* Return on unsupported devices */ 
     507        if((srev >= AR5K_SREV_VER_AR5416)){ 
     508                printk(KERN_ERR "ath_hal: Device not supported (0x%x)\n", srev); 
     509                *status = AR5K_ENOTSUPP; 
     510                goto failed; 
     511        } 
    505512 
    506513        switch (srev) {