Please pull 'upstream-fixes' branch of wireless-2.6
Subsystems (3)
The following changes since commit a8b3485287731978899ced11f24628c927890e78:
Linus Torvalds (1):
Linux v2.6.20-rc5
are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream-fixes
Larry Finger (1):
bcm43xx: Fix failure to deliver PCI-E interrupts
drivers/net/wireless/bcm43xx/bcm43xx_main.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-)
drivers/net/wireless/bcm43xx/bcm43xx_main.c +7 -4
@@ -2701,8 +2701,8 @@ static int bcm43xx_probe_cores(struct bcm43xx_private *bcm) sb_id_hi =bcm43xx_read32 (bcm, BCM43xx_CIR_SB_ID_HI);/* extract core_id, core_rev, core_vendor */ - core_id = (sb_id_hi &0xFFF0 ) >>4 ; - core_rev = (sb_id_hi &0xF ); + core_id = (sb_id_hi &0x8FF0 ) >>4 ; + core_rev = ((sb_id_hi &0xF ) | ((sb_id_hi &0x7000 ) >>8 )); core_vendor = (sb_id_hi &0xFFFF0000 ) >>16 ; dprintk(KERN_INFO PFX "Core %d: ID 0x%x, rev 0x%x, vendor 0x%x\n",
@@ -2873,7 +2873,10 @@ static int bcm43xx_wireless_core_init(struct bcm43xx_private *bcm, sbimconfiglow =bcm43xx_read32 (bcm, BCM43xx_CIR_SBIMCONFIGLOW); sbimconfiglow &= ~ BCM43xx_SBIMCONFIGLOW_REQUEST_TOUT_MASK; sbimconfiglow &= ~ BCM43xx_SBIMCONFIGLOW_SERVICE_TOUT_MASK; - sbimconfiglow |=0x32 ; +if (bcm->bustype == BCM43xx_BUSTYPE_PCI) + sbimconfiglow |=0x32 ; +else + sbimconfiglow |=0x53 ;bcm43xx_write32 (bcm, BCM43xx_CIR_SBIMCONFIGLOW, sbimconfiglow); }
@@ -3077,7 +3080,7 @@ static int bcm43xx_setup_backplane_pci_connection(struct bcm43xx_private *bcm,if (err) goto out; -if (bcm->current_core->rev <6 || +if (bcm->current_core->rev <6 && bcm->current_core->id == BCM43xx_COREID_PCI) { value =bcm43xx_read32 (bcm, BCM43xx_CIR_SBINTVEC); value |= (1 << backplane_flag_nr);
Signature · 2 lines
John W. Linville [email protected]
Please pull 'upstream' branch of wireless-2.6
The following changes since commit 10764889c6355cbb335cf0578ce12427475d1a65:
Larry Finger (1):
bcm43xx: Fix failure to deliver PCI-E interrupts
are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream
Daniel Drake (6):
zd1211rw: Generic HMAC initialization
zd1211rw: 2 new ZD1211B device ID's
zd1211rw: Consistency for address space constants
zd1211rw: Remove addressing abstraction
zd1211rw: Add ID for Linksys WUSBF54G
zd1211rw: Add ID for ZyXEL ZyAIR G-220 v2
John W. Linville (1):
softmac: avoid assert in ieee80211softmac_wx_get_rate
Kai Engert (1):
prism54: add ethtool -i interface
Larry Finger (1):
bcm43xx: Interrogate hardware-enable switch and update LEDs
Michael Buesch (1):
Update Prism54 MAINTAINERS entry
Zhu Yi (1):
ipw2200: add iwconfig rts/frag auto support
MAINTAINERS | 2 +- drivers/net/wireless/bcm43xx/bcm43xx.h | 7 +- drivers/net/wireless/bcm43xx/bcm43xx_leds.c | 11 +- drivers/net/wireless/bcm43xx/bcm43xx_main.c | 36 ++++-- drivers/net/wireless/bcm43xx/bcm43xx_radio.c | 2 + drivers/net/wireless/bcm43xx/bcm43xx_radio.h | 16 +++ drivers/net/wireless/ipw2200.c | 4 +- drivers/net/wireless/prism54/islpci_dev.c | 13 ++ drivers/net/wireless/prism54/islpci_dev.h | 4 + drivers/net/wireless/prism54/islpci_hotplug.c | 3 - drivers/net/wireless/zd1211rw/zd_chip.c | 126 ++++++++++---------- drivers/net/wireless/zd1211rw/zd_chip.h | 158 ++++++++++++++----------- drivers/net/wireless/zd1211rw/zd_def.h | 2 + drivers/net/wireless/zd1211rw/zd_ieee80211.h | 1 - drivers/net/wireless/zd1211rw/zd_rf.h | 2 - drivers/net/wireless/zd1211rw/zd_types.h | 71 ----------- drivers/net/wireless/zd1211rw/zd_usb.c | 128 ++------------------ drivers/net/wireless/zd1211rw/zd_usb.h | 6 +- net/ieee80211/softmac/ieee80211softmac_wx.c | 6 + 19 files changed, 256 insertions(+), 342 deletions(-) delete mode 100644 drivers/net/wireless/zd1211rw/zd_types.h
MAINTAINERS +1 -1
@@ -2654,7 +2654,7 @@ S: Supported PRISM54 WIRELESS DRIVER P: Prism54 Development Team -M: [email protected] +M: [email protected] L: [email protected] W: http://prism54.org S: Maintained
drivers/net/wireless/bcm43xx/bcm43xx.h +6 -1
@@ -352,6 +352,10 @@#define BCM43xx_UCODEFLAG_UNKPACTRL 0x0040#define BCM43xx_UCODEFLAG_JAPAN 0x0080 +/* Hardware Radio Enable masks */ +#define BCM43xx_MMIO_RADIO_HWENABLED_HI_MASK (1 << 16) +#define BCM43xx_MMIO_RADIO_HWENABLED_LO_MASK (1 << 4) +/* Generic-Interrupt reasons. */ #define BCM43xx_IRQ_READY (1 << 0)#define BCM43xx_IRQ_BEACON (1 << 1)
@@ -758,7 +762,8 @@ struct bcm43xx_private { bad_frames_preempt:1, /* Use "Bad Frames Preemption" (default off) */ reg124_set_0x4:1, /* Some variable to keep track of IRQ stuff. */ short_preamble:1, /* TRUE, if short preamble is enabled. */ - firmware_norelease:1; /* Do not release the firmware. Used on suspend. */ + firmware_norelease:1, /* Do not release the firmware. Used on suspend. */ + radio_hw_enable:1; /* TRUE if radio is hardware enabled */struct bcm43xx_stats stats;
drivers/net/wireless/bcm43xx/bcm43xx_leds.c +7 -4
@@ -26,6 +26,7 @@*/ #include "bcm43xx_leds.h" +#include "bcm43xx_radio.h" #include "bcm43xx.h" #include <asm/bitops.h>
@@ -108,6 +109,7 @@ static void bcm43xx_led_init_hardcoded(struct bcm43xx_private *bcm,switch (led_index) {case 0 : led->behaviour = BCM43xx_LED_ACTIVITY; + led->activelow =1 ;if (bcm->board_vendor ==PCI_VENDOR_ID_COMPAQ ) led->behaviour = BCM43xx_LED_RADIO_ALL;break ;
@@ -199,20 +201,21 @@ void bcm43xx_leds_update(struct bcm43xx_private *bcm, int activity) turn_on = activity;break ;case BCM43xx_LED_RADIO_ALL: - turn_on = radio->enabled; + turn_on = radio->enabled &&bcm43xx_is_hw_radio_enabled (bcm);break ;case BCM43xx_LED_RADIO_A:case BCM43xx_LED_BCM4303_2: - turn_on = (radio->enabled && phy->type == BCM43xx_PHYTYPE_A); + turn_on = (radio->enabled &&bcm43xx_is_hw_radio_enabled (bcm) && + phy->type == BCM43xx_PHYTYPE_A);break ;case BCM43xx_LED_RADIO_B:case BCM43xx_LED_BCM4303_1: - turn_on = (radio->enabled && + turn_on = (radio->enabled &&bcm43xx_is_hw_radio_enabled (bcm) && (phy->type == BCM43xx_PHYTYPE_B || phy->type == BCM43xx_PHYTYPE_G));break ;case BCM43xx_LED_MODE_BG: -if (phy->type == BCM43xx_PHYTYPE_G && +if (phy->type == BCM43xx_PHYTYPE_G &&bcm43xx_is_hw_radio_enabled (bcm) &&1 /*FIXME: using G rates.*/ ) turn_on =1 ;break ;
drivers/net/wireless/bcm43xx/bcm43xx_main.c +27 -9
@@ -2441,6 +2441,9 @@ static int bcm43xx_chip_init(struct bcm43xx_private *bcm)if (err) goto err_gpio_cleanup;bcm43xx_radio_turn_on (bcm); + bcm->radio_hw_enable =bcm43xx_is_hw_radio_enabled (bcm); + dprintk(KERN_INFO PFX "Radio %s by hardware\n", + (bcm->radio_hw_enable == 0) ? "disabled" : "enabled");bcm43xx_write16 (bcm,0x03E6 ,0x0000 ); err =bcm43xx_phy_init (bcm);
@@ -3175,9 +3178,24 @@ static void bcm43xx_periodic_every30sec(struct bcm43xx_private *bcm)static void bcm43xx_periodic_every15sec (struct bcm43xx_private *bcm) { +bcm43xx_phy_xmitpower (bcm);//FIXME: unless scanning? +//TODO for APHY (temperature?) +} + +static void bcm43xx_periodic_every1sec (struct bcm43xx_private *bcm) +{struct bcm43xx_phyinfo *phy =bcm43xx_current_phy (bcm);struct bcm43xx_radioinfo *radio =bcm43xx_current_radio (bcm); +int radio_hw_enable; +/* check if radio hardware enabled status changed */ + radio_hw_enable =bcm43xx_is_hw_radio_enabled (bcm); +if (unlikely (bcm->radio_hw_enable != radio_hw_enable)) { + bcm->radio_hw_enable = radio_hw_enable; + dprintk(KERN_INFO PFX "Radio hardware status changed to %s\n", + (radio_hw_enable == 0) ? "disabled" : "enabled"); +bcm43xx_leds_update (bcm,0 ); + }if (phy->type == BCM43xx_PHYTYPE_G) {//TODO: update_aci_moving_average if (radio->aci_enable && radio->aci_wlan_automatic) {
@@ -3201,21 +3219,21 @@ static void bcm43xx_periodic_every15sec(struct bcm43xx_private *bcm)//TODO: implement rev1 workaround } } -bcm43xx_phy_xmitpower (bcm);//FIXME: unless scanning? -//TODO for APHY (temperature?) }static void do_periodic_work (struct bcm43xx_private *bcm) { -if (bcm->periodic_state %8 ==0 ) +if (bcm->periodic_state %120 ==0 )bcm43xx_periodic_every120sec (bcm); -if (bcm->periodic_state %4 ==0 ) +if (bcm->periodic_state %60 ==0 )bcm43xx_periodic_every60sec (bcm); -if (bcm->periodic_state %2 ==0 ) +if (bcm->periodic_state %30 ==0 )bcm43xx_periodic_every30sec (bcm); -bcm43xx_periodic_every15sec (bcm); +if (bcm->periodic_state %15 ==0 ) +bcm43xx_periodic_every15sec (bcm); +bcm43xx_periodic_every1sec (bcm); -schedule_delayed_work (&bcm->periodic_work,HZ *15 ); +schedule_delayed_work (&bcm->periodic_work,HZ ); }static void bcm43xx_periodic_work_handler (struct work_struct *work)
@@ -3228,7 +3246,7 @@ static void bcm43xx_periodic_work_handler(struct work_struct *work)unsigned long orig_trans_start =0 ;mutex_lock (&bcm->mutex); -if (unlikely (bcm->periodic_state %4 ==0 )) { +if (unlikely (bcm->periodic_state %60 ==0 )) {/* Periodic work will take a long time, so we want it to * be preemtible. */
@@ -3260,7 +3278,7 @@ static void bcm43xx_periodic_work_handler(struct work_struct *work)do_periodic_work (bcm); -if (unlikely (bcm->periodic_state %4 ==0 )) { +if (unlikely (bcm->periodic_state %60 ==0 )) {spin_lock_irqsave (&bcm->irq_lock, flags);tasklet_enable (&bcm->isr_tasklet);bcm43xx_interrupt_enable (bcm, savedirqs);
drivers/net/wireless/bcm43xx/bcm43xx_radio.c +2 -0
@@ -1981,6 +1981,7 @@ void bcm43xx_radio_turn_on(struct bcm43xx_private *bcm) } radio->enabled =1 ; dprintk(KERN_INFO PFX "Radio turned on\n"); +bcm43xx_leds_update (bcm,0 ); }void bcm43xx_radio_turn_off (struct bcm43xx_private *bcm)
@@ -2001,6 +2002,7 @@ void bcm43xx_radio_turn_off(struct bcm43xx_private *bcm)bcm43xx_phy_write (bcm,0x0015 ,0xAA00 ); radio->enabled =0 ; dprintk(KERN_INFO PFX "Radio turned off\n"); +bcm43xx_leds_update (bcm,0 ); }void bcm43xx_radio_clear_tssi (struct bcm43xx_private *bcm)
drivers/net/wireless/bcm43xx/bcm43xx_radio.h +16 -0
@@ -65,6 +65,22 @@ void bcm43xx_radio_init2060(struct bcm43xx_private *bcm);void bcm43xx_radio_turn_on (struct bcm43xx_private *bcm);void bcm43xx_radio_turn_off (struct bcm43xx_private *bcm); +static inline +int bcm43xx_is_hw_radio_enabled (struct bcm43xx_private *bcm) +{ +/* function to return state of hardware enable of radio +* returns 0 if radio disabled, 1 if radio enabled +*/ +if (bcm->current_core->rev >=3 ) +return ((bcm43xx_read32 (bcm, BCM43xx_MMIO_RADIO_HWENABLED_HI) + & BCM43xx_MMIO_RADIO_HWENABLED_HI_MASK) + ==0 ) ?1 :0 ; +else +return ((bcm43xx_read16 (bcm, BCM43xx_MMIO_RADIO_HWENABLED_LO) + & BCM43xx_MMIO_RADIO_HWENABLED_LO_MASK) + ==0 ) ?0 :1 ; +} +int bcm43xx_radio_selectchannel (struct bcm43xx_private *bcm,u8 channel,int synthetic_pu_workaround);
drivers/net/wireless/ipw2200.c +2 -2
@@ -9166,7 +9166,7 @@ static int ipw_wx_set_rts(struct net_device *dev, {struct ipw_priv *priv =ieee80211_priv (dev);mutex_lock (&priv->mutex); -if (wrqu->rts.disabled) +if (wrqu->rts.disabled || !wrqu->rts.fixed) priv->rts_threshold =DEFAULT_RTS_THRESHOLD ;else { if (wrqu->rts.value < MIN_RTS_THRESHOLD ||
@@ -9255,7 +9255,7 @@ static int ipw_wx_set_frag(struct net_device *dev, {struct ipw_priv *priv =ieee80211_priv (dev);mutex_lock (&priv->mutex); -if (wrqu->frag.disabled) +if (wrqu->frag.disabled || !wrqu->frag.fixed) priv->ieee->fts =DEFAULT_FTS ;else { if (wrqu->frag.value < MIN_FRAG_THRESHOLD ||
drivers/net/wireless/prism54/islpci_dev.c +13 -0
@@ -21,6 +21,7 @@#include <linux/module.h> #include <linux/netdevice.h> +#include <linux/ethtool.h> #include <linux/pci.h> #include <linux/etherdevice.h> #include <linux/delay.h>
@@ -787,6 +788,17 @@ islpci_set_multicast_list(struct net_device *dev) }#endif +static void islpci_ethtool_get_drvinfo (struct net_device *dev, +struct ethtool_drvinfo *info) +{ +strcpy (info->driver,DRV_NAME ); +strcpy (info->version,DRV_VERSION ); +} + +static struct ethtool_ops islpci_ethtool_ops = { + .get_drvinfo = islpci_ethtool_get_drvinfo, +}; +struct net_device *islpci_setup (struct pci_dev *pdev) {
@@ -813,6 +825,7 @@ islpci_setup(struct pci_dev *pdev) ndev->do_ioctl = &prism54_ioctl; ndev->wireless_handlers = (struct iw_handler_def *) &prism54_handler_def; + ndev->ethtool_ops = &islpci_ethtool_ops; ndev->hard_start_xmit = &islpci_eth_transmit;/* ndev->set_multicast_list = &islpci_set_multicast_list; */
drivers/net/wireless/prism54/islpci_dev.h +4 -0
@@ -211,4 +211,8 @@ islpci_trigger(islpci_private *priv)int islpci_free_memory (islpci_private *);struct net_device *islpci_setup (struct pci_dev *); + +#define DRV_NAME "prism54" +#define DRV_VERSION "1.2" +#endif /* _ISLPCI_DEV_H */
drivers/net/wireless/prism54/islpci_hotplug.c +0 -3
@@ -28,9 +28,6 @@#include "islpci_mgt.h" /* for pc_debug */ #include "isl_oid.h" -#define DRV_NAME "prism54" -#define DRV_VERSION "1.2" -MODULE_AUTHOR ("[Intersil] R.Bastings and W.Termorshuizen, The prism54.org Development Team <[email protected]>" );MODULE_DESCRIPTION ("The Prism54 802.11 Wireless LAN adapter" );MODULE_LICENSE ("GPL" );
drivers/net/wireless/zd1211rw/zd_chip.c +66 -60
231 lines not on this page · raw message
drivers/net/wireless/zd1211rw/zd_chip.h +90 -68
197 lines not on this page · raw message
drivers/net/wireless/zd1211rw/zd_def.h +2 -0
@@ -23,6 +23,8 @@#include <linux/device.h> #include <linux/kernel.h> +typedef u16 __nocast zd_addr_t ; + #define dev_printk_f(level, dev, fmt, args...) \ dev_printk(level, dev, "%s() " fmt, __func__, ##args)
drivers/net/wireless/zd1211rw/zd_ieee80211.h +0 -1
@@ -2,7 +2,6 @@#define _ZD_IEEE80211_H#include <net/ieee80211.h> -#include "zd_types.h" /* Additional definitions from the standards. */
drivers/net/wireless/zd1211rw/zd_rf.h +0 -2
@@ -18,8 +18,6 @@#ifndef _ZD_RF_H#define _ZD_RF_H -#include "zd_types.h" -#define UW2451_RF 0x2#define UCHIP_RF 0x3#define AL2230_RF 0x4
drivers/net/wireless/zd1211rw/zd_types.h deleted +0 -71
71 lines not on this page · raw message
drivers/net/wireless/zd1211rw/zd_usb.c +12 -116
186 lines not on this page · raw message
drivers/net/wireless/zd1211rw/zd_usb.h +2 -4
@@ -25,7 +25,6 @@#include <linux/usb.h> #include "zd_def.h" -#include "zd_types.h" enum devicetype {DEVICE_ZD1211 =0 ,
@@ -181,15 +180,14 @@ struct zd_usb_tx {spinlock_t lock; }; -/* Contains the usb parts. The structure doesn't require a lock, because intf -* and fw_base_offset, will not be changed after initialization. +/* Contains the usb parts. The structure doesn't require a lock because intf +* will not be changed after initialization. */ struct zd_usb {struct zd_usb_interrupt intr;struct zd_usb_rx rx;struct zd_usb_tx tx;struct usb_interface *intf; -u16 fw_base_offset; };#define zd_usb_dev (usb) (&usb->intf->dev)
net/ieee80211/softmac/ieee80211softmac_wx.c +6 -0
@@ -265,6 +265,12 @@ ieee80211softmac_wx_get_rate(struct net_device *net_dev,int err = -EINVAL ;spin_lock_irqsave (&mac->lock, flags); + +if (unlikely (!mac->running)) { + err = -ENODEV ; + goto out_unlock; + } +switch (mac->txrates.default_rate) {case IEEE80211_CCK_RATE_1MB : data->bitrate.value =1000000 ;
Signature · 2 lines
John W. Linville [email protected]
Re: Please pull 'upstream' branch of wireless-2.6
Quoted 7 lines · John W. Linville
The following changes since commit
10764889c6355cbb335cf0578ce12427475d1a65:
Larry Finger (1):
bcm43xx: Fix failure to deliver PCI-E interruptsare found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitupstream
ACK. Open question of parentage, though: I just rebased netdev-2.6.git#upstream. Is your wireless-2.6 affected by this rebase?
If not, I will go ahead and pull.
Jeff
Re: Please pull 'upstream' branch of wireless-2.6
Quoted 8 lines · Jeff Garzik
Quoted 7 lines · John W. Linville
The following changes since commit
10764889c6355cbb335cf0578ce12427475d1a65:
Larry Finger (1):
bcm43xx: Fix failure to deliver PCI-E interruptsare found in the git repository at:
Quoted 7 lines
Quoted 2 lines
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git
upstreamACK. Open question of parentage, though: I just rebased netdev-2.6.git#upstream. Is your wireless-2.6 affected by this rebase?
If not, I will go ahead and pull.
Right now it looks like this:
Linus's tree -> my upstream-fixes branch -> my upstream branch
So, I think it should be fine for your you to pull.
Thanks,
John
Signature · 2 lines
John W. Linville [email protected]
Re: Please pull 'upstream' branch of wireless-2.6
In reply to John W. LinvilleQuoted 22 lines · John W. Linville
The following changes since commit
10764889c6355cbb335cf0578ce12427475d1a65:
Larry Finger (1):
bcm43xx: Fix failure to deliver PCI-E interruptsare found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitupstreamDaniel Drake (6):
zd1211rw: Generic HMAC initialization
zd1211rw: 2 new ZD1211B device ID's
zd1211rw: Consistency for address space constants
zd1211rw: Remove addressing abstraction
zd1211rw: Add ID for Linksys WUSBF54G
zd1211rw: Add ID for ZyXEL ZyAIR G-220 v2John W. Linville (1):
softmac: avoid assert inieee80211softmac_wx_get_rateKai Engert (1):
prism54: add ethtool -i interface
Quoted 8 lines
Larry Finger (1):
bcm43xx: Interrogate hardware-enable switch and update LEDsMichael Buesch (1):
Update Prism54MAINTAINERSentryZhu Yi (1):
ipw2200: add iwconfig rts/frag auto support
pulled, thanks
Quoted 6 lines · John W. Linville
The following changes since commit
a8b3485287731978899ced11f24628c927890e78:
Linus Torvalds (1):Linux v2.6.20-rc5are found in the git repository at:
Quoted 7 lines
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitupstream-fixesLarry Finger (1):
bcm43xx: Fix failure to deliver PCI-E interruptsdrivers/net/wireless/bcm43xx/bcm43xx_main.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-)
pulled