pull request: wireless-2.6 2008-04-15
Subsystems (8)
Dave,
This set looks bigger than it really is...three of the patches deal with a subtle API change for the SSB bus to do DMA correctly on architectures with complex DMA requirements. The changes in those patches amount to applying the same one-line change in dozens of places across three drivers (b44, b43, and b43legacy).
Also included are a number of MAINTAINERS updates. I guess everyone forgets about these until the release nears.
Finally there are a few minor fixes, like the rfkill fix to only toggle state for the correct device type rather than all devices on a system, the rtl8187 priv->vif fix, the gelic IE overrun fix, and the mac80211 fix to limit log SPAM.
Please let me know if there are problems! Hopefully this will be the last round before 2.6.25...(famous last words...)
Thanks,
John
---
Individual patches are available here:
http://www.kernel.org/pub/linux/kernel/people/linville/wireless-2.6/
---
The following changes since commit 56690c2151d33534f0537fd03c533eda81d96f0f:
Oliver Hartkopp (1):
[CAN]: Update documentation of struct sockaddr_can
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git
Carlos Corbacho (1):
rfkill: Fix device type check when toggling states
Herton Ronaldo Krzesinski (1):
rtl8187: Add missing priv->vif assignments
Ivo van Doorn (2):
Add rfkill to MAINTAINERS file
Update rt2x00 MAINTAINERS entry
Johannes Berg (1):
mac80211: remove message on receiving unexpected unencrypted frames
Masakazu Mokuno (1):
PS3: gelic: fix the oops on the broken IE returned from the hypervisor
Michael Buesch (2):
ssb: Fix usage of struct device used for DMAing
b43legacy: Fix usage of struct device used for DMAing
Reinette Chatre (1):
MAINTAINERS: move to generic repository for iwlwifi
Stefano Brivio (2):
b43legacy: fix initvals loading on bcm4303
b43legacy: fix DMA mapping leakage
MAINTAINERS | 10 +++++- drivers/net/b44.c | 52 +++++++++++++++--------------- drivers/net/ps3_gelic_wireless.c | 11 +++++-- drivers/net/wireless/b43/dma.c | 27 ++++++++-------- drivers/net/wireless/b43legacy/dma.c | 55 ++++++++++++++++++-------------- drivers/net/wireless/b43legacy/main.c | 2 + drivers/net/wireless/rtl8187_dev.c | 3 ++ drivers/ssb/main.c | 14 +++++--- include/linux/ssb/ssb.h | 4 ++ net/mac80211/rx.c | 7 +--- net/rfkill/rfkill.c | 2 +- 11 files changed, 108 insertions(+), 79 deletions(-)
MAINTAINERS +9 -1
@@ -2116,7 +2116,7 @@ M: [email protected] L: [email protected] L: [email protected] W: http://intellinuxwireless.org -T: git git://git.kernel.org/pub/scm/linux/kernel/git/rchatre/iwlwifi-2.6.git +T: git kernel.org:/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-2.6.git S: Supported IOC3 ETHERNET DRIVER
@@ -3280,6 +3280,7 @@ L: [email protected] L: [email protected] W: http://rt2x00.serialmonkey.com/ S: Maintained +T: git kernel.org:/pub/scm/linux/kernel/git/ivd/rt2x00.git F: drivers/net/wireless/rt2x00/ RAMDISK RAM BLOCK DEVICE DRIVER
@@ -3342,6 +3343,13 @@ L: [email protected] W: http://www.namesys.com S: Supported +RFKILL +P: Ivo van Doorn +M: [email protected] +L: [email protected] +S: Maintained +F: net/rfkill + ROCKETPORT DRIVER P: Comtrol Corp. W: http://www.comtrol.com
drivers/net/b44.c +26 -26
196 lines not on this page · raw message
drivers/net/ps3_gelic_wireless.c +8 -3
@@ -512,13 +512,18 @@ static void gelic_wl_parse_ie(u8 *data, size_t len, data, len);memset (ie_info,0 ,sizeof (struct ie_info )); -while (0 < data_left) { +while (2 <= data_left) { item_id = *pos++; item_len = *pos++; + data_left -=2 ; + +if (data_left < item_len) +break ;switch (item_id) {case MFIE_TYPE_GENERIC : -if (!memcmp (pos, wpa_oui,OUI_LEN ) && +if ((OUI_LEN +1 <= item_len) && + !memcmp (pos, wpa_oui,OUI_LEN ) && pos[OUI_LEN ] ==0x01 ) { ie_info->wpa.data = pos -2 ; ie_info->wpa.len = item_len +2 ;
@@ -535,7 +540,7 @@ static void gelic_wl_parse_ie(u8 *data, size_t len,break ; } pos += item_len; - data_left -= item_len +2 ; + data_left -= item_len; } pr_debug("%s: wpa=%p,%d wpa2=%p,%d\n", __func__, ie_info->wpa.data, ie_info->wpa.len,
drivers/net/wireless/b43/dma.c +14 -13
@@ -373,10 +373,10 @@ static inlinedma_addr_t dmaaddr;if (tx) { - dmaaddr =dma_map_single (ring->dev->dev->dev, + dmaaddr =dma_map_single (ring->dev->dev->dma_dev, buf, len,DMA_TO_DEVICE ); }else { - dmaaddr =dma_map_single (ring->dev->dev->dev, + dmaaddr =dma_map_single (ring->dev->dev->dma_dev, buf, len,DMA_FROM_DEVICE ); }
@@ -388,9 +388,10 @@ static inline dma_addr_t addr, size_t len, int tx) { if (tx) { - dma_unmap_single(ring->dev->dev->dev, addr, len, DMA_TO_DEVICE); + dma_unmap_single(ring->dev->dev->dma_dev, +addr ,len ,DMA_TO_DEVICE ); } else { -dma_unmap_single (ring->dev->dev->dev, +dma_unmap_single (ring->dev->dev->dma_dev, addr, len,DMA_FROM_DEVICE ); } }
@@ -400,7 +401,7 @@ static inline dma_addr_t addr, size_t len) {B43_WARN_ON (ring->tx); -dma_sync_single_for_cpu (ring->dev->dev->dev, +dma_sync_single_for_cpu (ring->dev->dev->dma_dev, addr, len,DMA_FROM_DEVICE ); }
@@ -409,7 +410,7 @@ static inline dma_addr_t addr, size_t len) {B43_WARN_ON (ring->tx); -dma_sync_single_for_device (ring->dev->dev->dev, +dma_sync_single_for_device (ring->dev->dev->dma_dev, addr, len,DMA_FROM_DEVICE ); }
@@ -425,7 +426,7 @@ static inlinestatic int alloc_ringmemory (struct b43_dmaring *ring) { -struct device *dev = ring->dev->dev->dev; +struct device *dma_dev = ring->dev->dev->dma_dev;gfp_t flags =GFP_KERNEL ;/* The specs call for 4K buffers for 30- and 32-bit DMA with 4K
@@ -439,7 +440,7 @@ static int alloc_ringmemory(struct b43_dmaring *ring)*/ if (ring->type ==B43_DMA_64BIT ) flags |=GFP_DMA ; - ring->descbase =dma_alloc_coherent (dev,B43_DMA_RINGMEMSIZE , + ring->descbase =dma_alloc_coherent (dma_dev,B43_DMA_RINGMEMSIZE , &(ring->dmabase), flags);if (!ring->descbase) {b43err (ring->dev->wl,"DMA ringmemory allocation failed\n" );
@@ -452,9 +453,9 @@ static int alloc_ringmemory(struct b43_dmaring *ring)static void free_ringmemory (struct b43_dmaring *ring) { -struct device *dev = ring->dev->dev->dev; +struct device *dma_dev = ring->dev->dev->dma_dev; -dma_free_coherent (dev,B43_DMA_RINGMEMSIZE , +dma_free_coherent (dma_dev,B43_DMA_RINGMEMSIZE , ring->descbase, ring->dmabase); }
@@ -854,7 +855,7 @@ struct b43_dmaring *b43_setup_dmaring(struct b43_wldev *dev, goto err_kfree_meta;/* test for ability to dma to txhdr_cache */ - dma_test =dma_map_single (dev->dev->dev, + dma_test =dma_map_single (dev->dev->dma_dev, ring->txhdr_cache,b43_txhdr_size (dev),DMA_TO_DEVICE );
@@ -869,7 +870,7 @@ struct b43_dmaring *b43_setup_dmaring(struct b43_wldev *dev,if (!ring->txhdr_cache) goto err_kfree_meta; - dma_test =dma_map_single (dev->dev->dev, + dma_test =dma_map_single (dev->dev->dma_dev, ring->txhdr_cache,b43_txhdr_size (dev),DMA_TO_DEVICE );
@@ -883,7 +884,7 @@ struct b43_dmaring *b43_setup_dmaring(struct b43_wldev *dev, } } -dma_unmap_single (dev->dev->dev, +dma_unmap_single (dev->dev->dma_dev, dma_test,b43_txhdr_size (dev),DMA_TO_DEVICE ); }
drivers/net/wireless/b43legacy/dma.c +31 -24
174 lines not on this page · raw message
drivers/net/wireless/b43legacy/main.c +2 -0
@@ -1488,6 +1488,7 @@ static int b43legacy_request_firmware(struct b43legacy_wldev *dev) }if (!fw->initvals) {switch (dev->phy.type) { +case B43legacy_PHYTYPE_B:case B43legacy_PHYTYPE_G:if ((rev >=5 ) && (rev <=10 )) filename ="b0g0initvals5" ;
@@ -1505,6 +1506,7 @@ static int b43legacy_request_firmware(struct b43legacy_wldev *dev) }if (!fw->initvals_band) {switch (dev->phy.type) { +case B43legacy_PHYTYPE_B:case B43legacy_PHYTYPE_G:if ((rev >=5 ) && (rev <=10 )) filename ="b0g0bsinitvals5" ;
drivers/net/wireless/rtl8187_dev.c +3 -0
@@ -509,6 +509,8 @@ static int rtl8187_add_interface(struct ieee80211_hw *dev,return -EOPNOTSUPP ; } + priv->vif = conf->vif; +rtl818x_iowrite8 (priv, &priv->map->EEPROM_CMD,RTL818X_EEPROM_CMD_CONFIG );for (i =0 ; i <ETH_ALEN ; i++) rtl818x_iowrite8(priv, &priv->map->MAC[i],
@@ -523,6 +525,7 @@ static void rtl8187_remove_interface(struct ieee80211_hw *dev, {struct rtl8187_priv *priv = dev->priv; priv->mode =IEEE80211_IF_TYPE_MNTR ; + priv->vif =NULL ; }static int rtl8187_config (struct ieee80211_hw *dev,struct ieee80211_conf *conf)
drivers/ssb/main.c +8 -6
@@ -436,15 +436,18 @@ static int ssb_devices_register(struct ssb_bus *bus)#ifdef CONFIG_SSB_PCIHOST sdev->irq = bus->host_pci->irq; dev->parent = &bus->host_pci->dev; + sdev->dma_dev = &bus->host_pci->dev;#endif break ;case SSB_BUSTYPE_PCMCIA :#ifdef CONFIG_SSB_PCMCIAHOST sdev->irq = bus->host_pcmcia->irq.AssignedIRQ; dev->parent = &bus->host_pcmcia->dev; + sdev->dma_dev = &bus->host_pcmcia->dev;#endif break ;case SSB_BUSTYPE_SSB : + sdev->dma_dev = dev;break ; }
@@ -1018,15 +1021,14 @@ EXPORT_SYMBOL(ssb_dma_translation);int ssb_dma_set_mask (struct ssb_device *ssb_dev,u64 mask) { -struct device *dev = ssb_dev->dev; +struct device *dma_dev = ssb_dev->dma_dev;#ifdef CONFIG_SSB_PCIHOST -if (ssb_dev->bus->bustype ==SSB_BUSTYPE_PCI && - !dma_supported (dev, mask)) -return -EIO ; +if (ssb_dev->bus->bustype ==SSB_BUSTYPE_PCI ) +return dma_set_mask (dma_dev, mask);#endif - dev->coherent_dma_mask = mask; - dev->dma_mask = &dev->coherent_dma_mask; + dma_dev->coherent_dma_mask = mask; + dma_dev->dma_mask = &dma_dev->coherent_dma_mask;return 0 ; }
include/linux/ssb/ssb.h +4 -0
@@ -129,6 +129,10 @@ struct ssb_device {const struct ssb_bus_ops *ops;struct device *dev; +/* Pointer to the device that has to be used for +* any DMA related operation. */ +struct device *dma_dev; +struct ssb_bus *bus;struct ssb_device_id id;
net/mac80211/rx.c +2 -5
@@ -1050,12 +1050,9 @@ ieee80211_drop_unencrypted(struct ieee80211_txrx_data *rx)if (unlikely (!(rx->fc &IEEE80211_FCTL_PROTECTED ) && (rx->fc &IEEE80211_FCTL_FTYPE ) ==IEEE80211_FTYPE_DATA && (rx->fc &IEEE80211_FCTL_STYPE ) !=IEEE80211_STYPE_NULLFUNC && - (rx->key || rx->sdata->drop_unencrypted))) { -if (net_ratelimit ()) -printk (KERN_DEBUG "%s: RX non-WEP frame, but expected " -"encryption\n" , rx->dev->name); + (rx->key || rx->sdata->drop_unencrypted)))return -EACCES ; - } +return 0 ; }
net/rfkill/rfkill.c +1 -1
@@ -92,7 +92,7 @@ void rfkill_switch_all(enum rfkill_type type, enum rfkill_state state) rfkill_states[type] = state;list_for_each_entry (rfkill, &rfkill_list, node) { -if (!rfkill->user_claim) +if ((!rfkill->user_claim) && (rfkill->type == type))rfkill_toggle_radio (rfkill, state); }
Signature · 2 lines
John W. Linville [email protected]
David Miller
maintainerFrom: "John W. Linville" <[email protected]>
Date: Tue, 15 Apr 2008 15:38:57 -0400
Quoted 9 lines
This set looks bigger than it really is...three of the patches deal with a subtle API change for the SSB bus to do DMA correctly on architectures with complex DMA requirements. The changes in those patches amount to applying the same one-line change in dozens of places across three drivers (b44, b43, and b43legacy).
Also included are a number of
MAINTAINERSupdates. I guess everyone forgets about these until the release nears.
Quoted 7 lines
Finally there are a few minor fixes, like the rfkill fix to only toggle state for the correct device type rather than all devices on a system, the rtl8187
priv->viffix, the gelic IE overrun fix, and the mac80211 fix to limit log SPAM.Please let me know if there are problems! Hopefully this will be the last round before 2.6.25...(famous last words...)
Pulled, thanks John.
why is the compat-wireless snapshot dated only 8th April? :/
David Miller ha scritto:
Quoted 26 lines
From: "John W. Linville" <[email protected]>
Date: Tue, 15 Apr 2008 15:38:57 -0400Quoted 9 lines
This set looks bigger than it really is...three of the patches deal with a subtle API change for the SSB bus to do DMA correctly on architectures with complex DMA requirements. The changes in those patches amount to applying the same one-line change in dozens of places across three drivers (b44, b43, and b43legacy).
Also included are a number of
MAINTAINERSupdates. I guess everyone forgets about these until the release nears.Quoted 7 lines
Finally there are a few minor fixes, like the rfkill fix to only toggle state for the correct device type rather than all devices on a system, the rtl8187
priv->viffix, the gelic IE overrun fix, and the mac80211 fix to limit log SPAM.Please let me know if there are problems! Hopefully this will be the last round before 2.6.25...(famous last words...)
Pulled, thanks John.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 3 lines
Antonio Quartulli, Student of Computer Science at University of Pisa Web: www.ritirata.org/ordex
Quoted 2 lines · Antonio Quartulli
why is the compat-wireless snapshot dated only 8th April? :/
See Luis' post to the "compat-wireless build fails" thread, apparently an update should be there about now although for some reason I'm getting infinite waits when I try and download it ;-)
Signature · 1 line
Brian