source: trunk/package/mac80211/patches/316-rt2x00-Remove-check-for-rf-word-0-rt2800usb.patch @ 14605

Last change on this file since 14605 was 14605, checked in by nbd, 7 years ago

upgrade to latest compat-wireless and rt2800 version

File size: 1.2 KB
  • drivers/net/wireless/rt2x00/rt2800usb.c

    From 192a3f0a429de8e892f80f02eae26855f96fb1b9 Mon Sep 17 00:00:00 2001
    From: Ivo van Doorn <IvDoorn@gmail.com>
    Date: Sun, 8 Feb 2009 17:08:54 +0100
    Subject: [PATCH] rt2x00: Remove check for rf word 0 (rt2800usb)
    
    Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
    ---
     drivers/net/wireless/rt2x00/rt2800usb.c |    3 ---
     drivers/net/wireless/rt2x00/rt2800usb.h |    4 ++--
     2 files changed, 2 insertions(+), 5 deletions(-)
    
    diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c
    index 012f4de..68ea600 100644
    a b static void rt2800usb_rf_write(struct rt2x00_dev *rt2x00dev, 
    182182{ 
    183183        u32 reg; 
    184184 
    185         if (!word) 
    186                 return; 
    187  
    188185        mutex_lock(&rt2x00dev->csr_mutex); 
    189186 
    190187        /* 
  • drivers/net/wireless/rt2x00/rt2800usb.h

    diff --git a/drivers/net/wireless/rt2x00/rt2800usb.h b/drivers/net/wireless/rt2x00/rt2800usb.h
    index ffccc21..f94c8f8 100644
    a b  
    6868#define EEPROM_SIZE                     0x0110 
    6969#define BBP_BASE                        0x0000 
    7070#define BBP_SIZE                        0x0080 
    71 #define RF_BASE                         0x0000 
    72 #define RF_SIZE                         0x0014 
     71#define RF_BASE                         0x0004 
     72#define RF_SIZE                         0x0010 
    7373 
    7474/* 
    7575 * Number of TX queues. 
Note: See TracBrowser for help on using the repository browser.