Please pull 'upstream-fixes' branch of wireless-2.6
Subsystems (3)
The following changes since commit 6b426e785cb81e53dc2fc4dcf997661472b470ef:
Linus Torvalds:
Merge git://git.kernel.org/.../kyle/parisc-2.6
are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream-fixes
Johannes Berg:
softmac: fix SIOCSIWAP
Michael Buesch:
bcm43xx: add to MAINTAINERS
bcm43xx: make PIO mode usable
Pavel Roskin:
Fix crash on big-endian systems during scan
MAINTAINERS | 8 ++ drivers/net/wireless/bcm43xx/bcm43xx_dma.h | 8 ++ drivers/net/wireless/bcm43xx/bcm43xx_pio.c | 92 ++++++++++++++++------- drivers/net/wireless/bcm43xx/bcm43xx_pio.h | 16 ++++ drivers/net/wireless/hostap/hostap_ioctl.c | 4 + include/net/ieee80211softmac.h | 5 + net/ieee80211/softmac/ieee80211softmac_assoc.c | 20 ++++- net/ieee80211/softmac/ieee80211softmac_module.c | 2 + net/ieee80211/softmac/ieee80211softmac_wx.c | 27 ++++--- 9 files changed, 133 insertions(+), 49 deletions(-)
MAINTAINERS +8 -0
@@ -421,6 +421,14 @@ L: [email protected] W: http://www.baycom.org/~tom/ham/ham.html S: Maintained +BCM43XX WIRELESS DRIVER +P: Michael Buesch +M: [email protected] +P: Stefano Brivio +M: [email protected] +W: http://bcm43xx.berlios.de/ +S: Maintained + BEFS FILE SYSTEM P: Sergey S. Kostyliov M: [email protected]
drivers/net/wireless/bcm43xx/bcm43xx_dma.h +8 -0
@@ -213,6 +213,14 @@ static inlinevoid bcm43xx_dma_rx (struct bcm43xx_dmaring *ring) { } +static inline +void bcm43xx_dma_tx_suspend (struct bcm43xx_dmaring *ring) +{ +} +static inline +void bcm43xx_dma_tx_resume (struct bcm43xx_dmaring *ring) +{ +}#endif /* CONFIG_BCM43XX_DMA */ #endif /* BCM43xx_DMA_H_ */
drivers/net/wireless/bcm43xx/bcm43xx_pio.c +62 -30
220 lines not on this page · raw message
drivers/net/wireless/bcm43xx/bcm43xx_pio.h +14 -2
@@ -14,8 +14,8 @@#define BCM43xx_PIO_RXCTL 0x08#define BCM43xx_PIO_RXDATA 0x0A -#define BCM43xx_PIO_TXCTL_WRITEHI (1 << 0) -#define BCM43xx_PIO_TXCTL_WRITELO (1 << 1) +#define BCM43xx_PIO_TXCTL_WRITELO (1 << 0) +#define BCM43xx_PIO_TXCTL_WRITEHI (1 << 1)#define BCM43xx_PIO_TXCTL_COMPLETE (1 << 2)#define BCM43xx_PIO_TXCTL_INIT (1 << 3)#define BCM43xx_PIO_TXCTL_SUSPEND (1 << 7)
@@ -95,6 +95,7 @@ void bcm43xx_pio_write(struct bcm43xx_pi u16 offset, u16 value) {bcm43xx_write16 (queue->bcm, queue->mmio_base + offset, value); +mmiowb (); }
@@ -107,6 +108,9 @@ void bcm43xx_pio_handle_xmitstatus(struc struct bcm43xx_xmitstatus *status);void bcm43xx_pio_rx (struct bcm43xx_pioqueue *queue); +void bcm43xx_pio_tx_suspend (struct bcm43xx_pioqueue *queue); +void bcm43xx_pio_tx_resume (struct bcm43xx_pioqueue *queue); +#else /* CONFIG_BCM43XX_PIO */ static inline
@@ -133,6 +137,14 @@ static inlinevoid bcm43xx_pio_rx (struct bcm43xx_pioqueue *queue) { } +static inline +void bcm43xx_pio_tx_suspend (struct bcm43xx_pioqueue *queue) +{ +} +static inline +void bcm43xx_pio_tx_resume (struct bcm43xx_pioqueue *queue) +{ +}#endif /* CONFIG_BCM43XX_PIO */ #endif /* BCM43xx_PIO_H_ */
drivers/net/wireless/hostap/hostap_ioctl.c +2 -2
@@ -1860,7 +1860,7 @@ static char * __prism2_translate_scan(lomemset (&iwe,0 ,sizeof (iwe)); iwe.cmd =SIOCGIWFREQ ;if (scan) { - chan = scan->chid; + chan =le16_to_cpu (scan->chid); }else if (bss) { chan = bss->chan; }else {
@@ -1868,7 +1868,7 @@ static char * __prism2_translate_scan(lo }if (chan >0 ) { - iwe.u.freq.m = freq_list[le16_to_cpu (chan -1 )] *100000 ; + iwe.u.freq.m = freq_list[chan -1 ] *100000 ; iwe.u.freq.e =1 ; current_ev =iwe_stream_add_event (current_ev, end_buf, &iwe,IW_EV_FREQ_LEN );
include/net/ieee80211softmac.h +4 -1
@@ -96,10 +96,13 @@ struct ieee80211softmac_assoc_info {* * bssvalid is true if we found a matching network * and saved it's BSSID into the bssid above. +* +* bssfixed is used for SIOCSIWAP. */ u8 static_essid:1, associating:1, - bssvalid:1; + bssvalid:1, + bssfixed:1;/* Scan retries remaining */ int scan_retry;
net/ieee80211/softmac/ieee80211softmac_assoc.c +16 -4
@@ -144,6 +144,12 @@ network_matches_request(struct ieee80211if (!we_support_all_basic_rates (mac, net->rates_ex, net->rates_ex_len))return 0 ; +/* assume that users know what they're doing ... +* (note we don't let them select a net we're incompatible with) */ +if (mac->associnfo.bssfixed) { +return !memcmp (mac->associnfo.bssid, net->bssid,ETH_ALEN ); + } +/* if 'ANY' network requested, take any that doesn't have privacy enabled */ if (mac->associnfo.req_essid.len ==0 && !(net->capability &WLAN_CAPABILITY_PRIVACY ))
@@ -176,7 +182,7 @@ ieee80211softmac_assoc_work(void *d)ieee80211softmac_disassoc (mac,WLAN_REASON_DISASSOC_STA_HAS_LEFT );/* try to find the requested network in our list, if we found one already */ -if (mac->associnfo.bssvalid) +if (mac->associnfo.bssvalid || mac->associnfo.bssfixed) found =ieee80211softmac_get_network_by_bssid (mac, mac->associnfo.bssid);/* Search the ieee80211 networks for this network if we didn't find it by bssid,
@@ -241,19 +247,25 @@ ieee80211softmac_assoc_work(void *d)if (ieee80211softmac_start_scan (mac)) dprintk(KERN_INFO PFX "Associate: failed to initiate scan. Is device up?\n");return ; - } -else { + }else {spin_lock_irqsave (&mac->lock, flags); mac->associnfo.associating =0 ; mac->associated =0 ;spin_unlock_irqrestore (&mac->lock, flags); dprintk(KERN_INFO PFX "Unable to find matching network after scan!\n"); +/* reset the retry counter for the next user request since we +* break out and don't reschedule ourselves after this point. */ + mac->associnfo.scan_retry =IEEE80211SOFTMAC_ASSOC_SCAN_RETRY_LIMIT ;ieee80211softmac_call_events (mac,IEEE80211SOFTMAC_EVENT_ASSOCIATE_NET_NOT_FOUND ,NULL );return ; } } - + +/* reset the retry counter for the next user request since we +* now found a net and will try to associate to it, but not +* schedule this function again. */ + mac->associnfo.scan_retry =IEEE80211SOFTMAC_ASSOC_SCAN_RETRY_LIMIT ; mac->associnfo.bssvalid =1 ;memcpy (mac->associnfo.bssid, found->bssid,ETH_ALEN );/* copy the ESSID for displaying it */
net/ieee80211/softmac/ieee80211softmac_module.c +2 -0
@@ -45,6 +45,8 @@ struct net_device *alloc_ieee80211softma softmac->ieee->handle_disassoc = ieee80211softmac_handle_disassoc; softmac->scaninfo =NULL ; + softmac->associnfo.scan_retry =IEEE80211SOFTMAC_ASSOC_SCAN_RETRY_LIMIT ; +/* TODO: initialise all the other callbacks in the ieee struct * (once they're written) */
net/ieee80211/softmac/ieee80211softmac_wx.c +17 -10
@@ -27,7 +27,8 @@#include "ieee80211softmac_priv.h" #include <net/iw_handler.h> - +/* for is_broadcast_ether_addr and is_zero_ether_addr */ +#include <linux/etherdevice.h> int ieee80211softmac_wx_trigger_scan(struct net_device *net_dev,
@@ -83,7 +84,6 @@ ieee80211softmac_wx_set_essid(struct net sm->associnfo.static_essid =1 ; } } - sm->associnfo.scan_retry =IEEE80211SOFTMAC_ASSOC_SCAN_RETRY_LIMIT ;/* set our requested ESSID length. * If applicable, we have already copied the data in */
@@ -310,8 +310,6 @@ ieee80211softmac_wx_set_wap(struct net_d char *extra) {struct ieee80211softmac_device *mac =ieee80211_priv (net_dev); -static const unsigned char any[] = {0xff ,0xff ,0xff ,0xff ,0xff ,0xff }; -static const unsigned char off[] = {0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 };unsigned long flags;/* sanity check */
@@ -320,10 +318,17 @@ ieee80211softmac_wx_set_wap(struct net_d }spin_lock_irqsave (&mac->lock, flags); -if (!memcmp (any, data->ap_addr.sa_data,ETH_ALEN ) || - !memcmp (off, data->ap_addr.sa_data,ETH_ALEN )) { -schedule_work (&mac->associnfo.work); - goto out; +if (is_broadcast_ether_addr (data->ap_addr.sa_data)) { +/* the bssid we have is not to be fixed any longer, +* and we should reassociate to the best AP. */ + mac->associnfo.bssfixed =0 ; +/* force reassociation */ + mac->associnfo.bssvalid =0 ; +if (mac->associated) +schedule_work (&mac->associnfo.work); + }else if (is_zero_ether_addr (data->ap_addr.sa_data)) { +/* the bssid we have is no longer fixed */ + mac->associnfo.bssfixed =0 ; }else {if (!memcmp (mac->associnfo.bssid, data->ap_addr.sa_data,ETH_ALEN )) {if (mac->associnfo.associating || mac->associated) {
@@ -333,12 +338,14 @@ ieee80211softmac_wx_set_wap(struct net_d }else {/* copy new value in data->ap_addr.sa_data to bssid */ memcpy (mac->associnfo.bssid, data->ap_addr.sa_data,ETH_ALEN ); - } + } +/* tell the other code that this bssid should be used no matter what */ + mac->associnfo.bssfixed =1 ;/* queue associate if new bssid or (old one again and not associated) */ schedule_work (&mac->associnfo.work); } -out: + out:spin_unlock_irqrestore (&mac->lock, flags);return 0 ; }
Signature · 2 lines
John W. Linville [email protected]
Please pull 'upstream' branch of wireless-2.6
The following changes since commit 7c241d37fe0e6442c5cf3b5d73f7f58f2dc66352:
Michael Buesch:
bcm43xx: make PIO mode usable
are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream
Dan Williams:
wireless/airo: minimal WPA awareness
Jiri Benc:
orinoco: fix BAP0 offset error after several days of operation
Johannes Berg:
softmac: add SIOCSIWMLME
softmac: clean up event handling code
Michael Buesch:
bcm43xx: use pci_iomap() for convenience.
Pavel Roskin:
orinoco: Remove useless CIS validation
orinoco: remove PCMCIA audio support, it's useless for wireless cards
orinoco: remove underscores from little-endian field names
orinoco: remove tracing code, it's unused
orinoco: remove debug buffer code and userspace include support
orinoco: Symbol card supported by spectrum_cs is LA4137, not LA4100
orinoco: optimize Tx exception handling in orinoco
orinoco: orinoco_xmit() should only return valid symbolic constants orinoco replace hermes_write_words() with hermes_write_bytes()
orinoco: don't use any padding for Tx frames
orinoco: refactor and clean up Tx error handling
orinoco: simplify 802.3 encapsulation code
orinoco: delay FID allocation after firmware initialization
orinoco_pci: disable device and free IRQ when suspending
orinoco_pci: use pci_iomap() for resources
orinoco: support PCI suspend/resume for Nortel, PLX and TMD adaptors
orinoco: reduce differences between PCI drivers, create orinoco_pci.h
orinoco: further comment cleanup in the PCI drivers
orinoco: bump version to 0.15
Zhu Yi:
ieee80211: Fix TKIP MIC calculation for QoS frames
ieee80211: Fix TX code doesn't enable QoS when using WPA + QoS
ieee80211: export list of bit rates with standard WEXT procddures
ieee80211: remove unnecessary CONFIG_WIRELESS_EXT checking
ieee80211: replace debug IEEE80211_WARNING with each own debug macro
ieee80211: update version stamp to 1.1.13
ipw2200: Exponential averaging for signal and noise Level
ipw2200: Fix TX QoS enabled frames problem
ipw2200: generates a scan event after a scan has completed
ipw2200: add module_param support for antenna selection
ipw2200: fix compile warning when !CONFIG_IPW2200_DEBUG
ipw2200: Do not continue loading the firmware if kmalloc fails
ipw2200: turn off signal debug log
ipw2200: Set the 'fixed' flags in wext get_rate
ipw2200: Fix endian issues with v3.0 fw image format README.ipw2200: rename CONFIG_IPW_DEBUG to CONFIG_IPW2200_DEBUG
ipw2200: Enable rtap interface for RF promiscuous mode while associated
ipw2200: version string rework
ipw2200: update version stamp to 1.1.2
ipw2200: rename CONFIG_IPW_QOS to CONFIG_IPW2200_QOS wireless Kconfig add IPW2200_RADIOTAP
ipw2200: rename CONFIG_IEEE80211_RADIOTAP to CONFIG_IPW2200_RADIOTAP
ipw2200: remove priv->last_noise reference
ipw2200: Fix wpa_supplicant association problem
Documentation/networking/README.ipw2200 | 10 drivers/net/wireless/Kconfig | 30 + drivers/net/wireless/airo.c | 271 +++++--- drivers/net/wireless/bcm43xx/bcm43xx.h | 1 drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | 2 drivers/net/wireless/bcm43xx/bcm43xx_main.c | 27 - drivers/net/wireless/hermes.c | 66 -- drivers/net/wireless/hermes.h | 43 - drivers/net/wireless/ipw2200.c | 849 +++++++++++++++++++++--- drivers/net/wireless/ipw2200.h | 83 ++ drivers/net/wireless/orinoco.c | 251 ++----- drivers/net/wireless/orinoco.h | 19 - drivers/net/wireless/orinoco_cs.c | 9 drivers/net/wireless/orinoco_nortel.c | 168 +++-- drivers/net/wireless/orinoco_pci.c | 207 +----- drivers/net/wireless/orinoco_pci.h | 125 ++++ drivers/net/wireless/orinoco_plx.c | 222 +++--- drivers/net/wireless/orinoco_tmd.c | 96 +-- drivers/net/wireless/spectrum_cs.c | 48 + include/net/ieee80211.h | 6 include/net/ieee80211softmac_wx.h | 5 net/ieee80211/ieee80211_crypt_tkip.c | 11 net/ieee80211/ieee80211_rx.c | 18 - net/ieee80211/ieee80211_tx.c | 63 +- net/ieee80211/ieee80211_wx.c | 44 + net/ieee80211/softmac/ieee80211softmac_assoc.c | 2 net/ieee80211/softmac/ieee80211softmac_event.c | 25 - net/ieee80211/softmac/ieee80211softmac_priv.h | 1 net/ieee80211/softmac/ieee80211softmac_wx.c | 32 + 29 files changed, 1673 insertions(+), 1061 deletions(-) create mode 100644 drivers/net/wireless/orinoco_pci.h
Patch included as attachment due to size concerns.
Signature · 2 lines
John W. Linville [email protected]
Re: Please pull 'upstream' branch of wireless-2.6
Quoted 11 lines · John W. Linville
The following changes since commit
7c241d37fe0e6442c5cf3b5d73f7f58f2dc66352:
Michael Buesch:
bcm43xx: make PIO mode usableare found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitupstreamDan Williams:
wireless/airo: minimal WPA awareness
Quoted 6 lines
Jiri Benc:
orinoco: fix BAP0 offset error after several days of operationJohannes Berg:
softmac: add SIOCSIWMLME
softmac: clean up event handling code
Any way to get the event handling cleanup patch into 2.6.17? It's pretty much a bugfix and bcm43xx is useless with wpa_supplicant and NM without the patch...
Dan
Quoted 83 lines
Michael Buesch:
bcm43xx: usepci_iomap()for convenience.Pavel Roskin:
orinoco: Remove useless CIS validation
orinoco: remove PCMCIA audio support, it's useless for wireless cards
orinoco: remove underscores from little-endian field names
orinoco: remove tracing code, it's unused
orinoco: remove debug buffer code and userspace include support
orinoco: Symbol card supported byspectrum_csis LA4137, not LA4100
orinoco: optimize Tx exception handling in orinoco
orinoco:orinoco_xmit()should only return valid symbolic constants orinoco replacehermes_write_words()withhermes_write_bytes()
orinoco: don't use any padding for Tx frames
orinoco: refactor and clean up Tx error handling
orinoco: simplify 802.3 encapsulation code
orinoco: delay FID allocation after firmware initialization
orinoco_pci: disable device and free IRQ when suspending
orinoco_pci: usepci_iomap()for resources
orinoco: support PCI suspend/resume for Nortel, PLX and TMD adaptors
orinoco: reduce differences between PCI drivers, createorinoco_pci.h
orinoco: further comment cleanup in the PCI drivers
orinoco: bump version to 0.15Zhu Yi:
ieee80211: Fix TKIP MIC calculation for QoS frames
ieee80211: Fix TX code doesn't enable QoS when using WPA + QoS
ieee80211: export list of bit rates with standard WEXT procddures
ieee80211: remove unnecessaryCONFIG_WIRELESS_EXTchecking
ieee80211: replace debugIEEE80211_WARNINGwith each own debug macro
ieee80211: update version stamp to 1.1.13
ipw2200: Exponential averaging for signal and noise Level
ipw2200: Fix TX QoS enabled frames problem
ipw2200: generates a scan event after a scan has completed
ipw2200: addmodule_paramsupport for antenna selection
ipw2200: fix compile warning when !CONFIG_IPW2200_DEBUG
ipw2200: Do not continue loading the firmware if kmalloc fails
ipw2200: turn off signal debug log
ipw2200: Set the 'fixed' flags in wextget_rate
ipw2200: Fix endian issues with v3.0 fw image format README.ipw2200: renameCONFIG_IPW_DEBUGtoCONFIG_IPW2200_DEBUG
ipw2200: Enable rtap interface for RF promiscuous mode while associated
ipw2200: version string rework
ipw2200: update version stamp to 1.1.2
ipw2200: renameCONFIG_IPW_QOStoCONFIG_IPW2200_QOSwirelessKconfigaddIPW2200_RADIOTAP
ipw2200: renameCONFIG_IEEE80211_RADIOTAPtoCONFIG_IPW2200_RADIOTAP
ipw2200: removepriv->last_noisereference
ipw2200: Fixwpa_supplicantassociation problemDocumentation/networking/README.ipw2200 | 10 drivers/net/wireless/Kconfig | 30 + drivers/net/wireless/airo.c | 271 +++++--- drivers/net/wireless/bcm43xx/bcm43xx.h | 1 drivers/net/wireless/bcm43xx/bcm43xx_debugfs.c | 2 drivers/net/wireless/bcm43xx/bcm43xx_main.c | 27 - drivers/net/wireless/hermes.c | 66 -- drivers/net/wireless/hermes.h | 43 - drivers/net/wireless/ipw2200.c | 849 +++++++++++++++++++++--- drivers/net/wireless/ipw2200.h | 83 ++ drivers/net/wireless/orinoco.c | 251 ++----- drivers/net/wireless/orinoco.h | 19 - drivers/net/wireless/orinoco_cs.c | 9 drivers/net/wireless/orinoco_nortel.c | 168 +++-- drivers/net/wireless/orinoco_pci.c | 207 +----- drivers/net/wireless/orinoco_pci.h | 125 ++++ drivers/net/wireless/orinoco_plx.c | 222 +++--- drivers/net/wireless/orinoco_tmd.c | 96 +-- drivers/net/wireless/spectrum_cs.c | 48 + include/net/ieee80211.h | 6 include/net/ieee80211softmac_wx.h | 5 net/ieee80211/ieee80211_crypt_tkip.c | 11 net/ieee80211/ieee80211_rx.c | 18 - net/ieee80211/ieee80211_tx.c | 63 +- net/ieee80211/ieee80211_wx.c | 44 + net/ieee80211/softmac/ieee80211softmac_assoc.c | 2 net/ieee80211/softmac/ieee80211softmac_event.c | 25 - net/ieee80211/softmac/ieee80211softmac_priv.h | 1 net/ieee80211/softmac/ieee80211softmac_wx.c | 32 + 29 files changed, 1673 insertions(+), 1061 deletions(-) create mode 100644 drivers/net/wireless/orinoco_pci.hPatch included as attachment due to size concerns.
Johannes Berg
maintainerRe: Please pull 'upstream' branch of wireless-2.6
Quoted 3 lines · Dan Williams
Any way to get the event handling cleanup patch into 2.6.17? It's pretty much a bugfix and bcm43xx is useless with
wpa_supplicantand NM without the patch...
No, that's not true, the cleanup patch is exactly that, code cleanup :)
Externally, softmac behaves the same without it since your patch and some other patches I did on top of that have already gone in.
johannes
Re: Please pull 'upstream' branch of wireless-2.6
Quoted 10 lines · Johannes Berg
Quoted 3 lines · Dan Williams
Any way to get the event handling cleanup patch into 2.6.17? It's pretty much a bugfix and bcm43xx is useless with
wpa_supplicantand NM without the patch...No, that's not true, the cleanup patch is exactly that, code cleanup :)
Externally, softmac behaves the same without it since your patch and some other patches I did on top of that have already gone in.
Ah, sorry, mistook this patch for the one that actually sent the events.
Dan
Quoted 7 lines · John W. Linville
The following changes since commit
6b426e785cb81e53dc2fc4dcf997661472b470ef:
Linus Torvalds:Merge git://git.kernel.org/.../kyle/parisc-2.6are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitupstream-fixes
pulled
Re: Please pull 'upstream' branch of wireless-2.6
In reply to John W. LinvilleQuoted 7 lines · John W. Linville
The following changes since commit
7c241d37fe0e6442c5cf3b5d73f7f58f2dc66352:
Michael Buesch:
bcm43xx: make PIO mode usableare found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitupstream
pulled