Changeset 17042


Ignore:
Timestamp:
05/14/11 09:50:19 (2 years ago)
Author:
eko
Message:

Belkin f7d4302 temp 2nd radio crash fix - dirty!!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/brcm/linux-2.6.23/brcm/shared/bcmotp.c

    r17028 r17042  
    2929#include <sbchipc.h> 
    3030#include <bcmotp.h> 
     31#include <bcmnvram.h> 
    3132 
    3233/* 
     
    437438                (CHIPID(oi->sih->chip) == BCM43431_CHIP_ID) || 
    438439        0) { 
    439                 uint32 p_bits; 
    440                 p_bits = (ipxotp_otpr(oi, cc, oi->otpgu_base + OTPGU_P_OFF) & OTPGU_P_MSK) 
    441                         >> OTPGU_P_SHIFT; 
    442                 oi->status |= (p_bits << OTPS_GUP_SHIFT); 
     440                if (nvram_match("boardtype", "0xa4cf") && nvram_match("boardrev", "0x1102")) { 
     441                        // skip this on Belkin f7d4302 - crashes 2nd radio, reason unknown 
     442                        printk (KERN_EMERG "Belkin f7d4302 temp 2nd radio crash fix - dirty!\n"); 
     443                } 
     444                else { 
     445                        uint32 p_bits; 
     446                        p_bits = (ipxotp_otpr(oi, cc, oi->otpgu_base + OTPGU_P_OFF) & OTPGU_P_MSK) 
     447                                >> OTPGU_P_SHIFT; 
     448                        oi->status |= (p_bits << OTPS_GUP_SHIFT); 
     449                } 
    443450        } 
    444451        OTP_DBG(("%s: status 0x%x\n", __FUNCTION__, oi->status)); 
Note: See TracChangeset for help on using the changeset viewer.