Please pull 'upstream-fixes' branch of wireless-2.6
Subsystems (3)
The following changes since commit c420bc9f09a0926b708c3edb27eacba434a4f4ba:
Linus Torvalds (1):
Linux 2.6.22-rc3
are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream-fixes
Akinobu Mita (2):
ieee80211: fix incomplete error message
softmac: alloc_ieee80211() NULL check
Björn Steinbrink (1):
prism54: fix monitor mode oops
Brandon Craig Rhodes (1):
hostap: Allocate enough tailroom for TKIP
drivers/net/wireless/hostap/hostap_80211_tx.c | 13 ++++++++----- drivers/net/wireless/prism54/islpci_eth.c | 5 +++-- net/ieee80211/ieee80211_module.c | 2 +- net/ieee80211/softmac/ieee80211softmac_module.c | 5 ++++- 4 files changed, 16 insertions(+), 9 deletions(-)
drivers/net/wireless/hostap/hostap_80211_tx.c +8 -5
@@ -311,7 +311,7 @@ static struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb,local_info_t *local;struct ieee80211_hdr_4addr *hdr;u16 fc; -int hdr_len, res; +int prefix_len, postfix_len, hdr_len, res; iface =netdev_priv (skb->dev); local = iface->local;
@@ -337,10 +337,13 @@ static struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb,if (skb ==NULL )return NULL ; -if ((skb_headroom (skb) < crypt->ops->extra_mpdu_prefix_len || -skb_tailroom (skb) < crypt->ops->extra_mpdu_postfix_len) && -pskb_expand_head (skb, crypt->ops->extra_mpdu_prefix_len, - crypt->ops->extra_mpdu_postfix_len,GFP_ATOMIC )) { + prefix_len = crypt->ops->extra_mpdu_prefix_len + + crypt->ops->extra_msdu_prefix_len; + postfix_len = crypt->ops->extra_mpdu_postfix_len + + crypt->ops->extra_msdu_postfix_len; +if ((skb_headroom (skb) < prefix_len || +skb_tailroom (skb) < postfix_len) && +pskb_expand_head (skb, prefix_len, postfix_len,GFP_ATOMIC )) {kfree_skb (skb);return NULL ; }
drivers/net/wireless/prism54/islpci_eth.c +3 -2
@@ -378,9 +378,10 @@ islpci_eth_receive(islpci_private *priv)display_buffer ((char *) skb->data, skb->len);#endif /* take care of monitor mode and spy monitoring. */ -if (unlikely (priv->iw_mode ==IW_MODE_MONITOR )) +if (unlikely (priv->iw_mode ==IW_MODE_MONITOR )) { + skb->dev = ndev; discard =islpci_monitor_rx (priv, &skb); -else { + }else {if (unlikely (skb->data[2 *ETH_ALEN ] ==0 )) {/* The packet has a rx_annex. Read it for spy monitoring, Then * remove it, while keeping the 2 leading MAC addr.
net/ieee80211/ieee80211_module.c +1 -1
@@ -140,7 +140,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv) dev =alloc_etherdev (sizeof (struct ieee80211_device ) + sizeof_priv);if (!dev) { -IEEE80211_ERROR ("Unable to network device.\n" ); +IEEE80211_ERROR ("Unable to allocate network device.\n" ); goto failed; } ieee =netdev_priv (dev);
net/ieee80211/softmac/ieee80211softmac_module.c +4 -1
@@ -33,7 +33,10 @@ struct net_device *alloc_ieee80211softmac(int sizeof_priv)struct ieee80211softmac_device *softmac;struct net_device *dev; - dev =alloc_ieee80211 (sizeof (struct ieee80211softmac_device ) + sizeof_priv); + dev =alloc_ieee80211 (sizeof (*softmac) + sizeof_priv); +if (!dev) +return NULL ; + softmac =ieee80211_priv (dev); softmac->dev = dev; softmac->ieee =netdev_priv (dev);
Signature · 2 lines
John W. Linville [email protected]
Please pull 'upstream' branch of wireless-2.6
The following changes since commit d7ea3be56adc95b17351221fd95e78115f3b01f4:
Brandon Craig Rhodes (1):
hostap: Allocate enough tailroom for TKIP
are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream
Akinobu Mita (1):
softmac: use list_for_each_entry
Daniel Drake (4):
zd1211rw: Add ID for ZyXEL G-200v2
zd1211rw: Extend RF layer
zd1211rw: Add UW2453 RF support
zd1211rw: Make CCK gain patching conditional on RF type
Jouni Malinen (1):
hostap: Remove driver version number
Larry Finger (1):
bcm43xx: Fix deviation from specifications in set_baseband_attenuation
Matthias Kaehlcke (1):
hostap: Use list_for_each_entry
Pavel Roskin (1):
hostap: Suppress broadcast if no stations are associated
drivers/net/wireless/bcm43xx/bcm43xx_phy.c | 2 +- drivers/net/wireless/hostap/hostap_ap.c | 34 +- drivers/net/wireless/hostap/hostap_config.h | 2 - drivers/net/wireless/hostap/hostap_cs.c | 4 - drivers/net/wireless/hostap/hostap_ioctl.c | 2 - drivers/net/wireless/hostap/hostap_main.c | 1 - drivers/net/wireless/hostap/hostap_pci.c | 5 - drivers/net/wireless/hostap/hostap_plx.c | 5 - drivers/net/wireless/zd1211rw/Makefile | 2 +- drivers/net/wireless/zd1211rw/zd_chip.c | 5 +- drivers/net/wireless/zd1211rw/zd_chip.h | 3 + drivers/net/wireless/zd1211rw/zd_rf.c | 21 +- drivers/net/wireless/zd1211rw/zd_rf.h | 28 ++ drivers/net/wireless/zd1211rw/zd_rf_al2230.c | 1 + drivers/net/wireless/zd1211rw/zd_rf_al7230b.c | 1 + drivers/net/wireless/zd1211rw/zd_rf_uw2453.c | 534 +++++++++++++++++++++++ drivers/net/wireless/zd1211rw/zd_usb.c | 1 + net/ieee80211/softmac/ieee80211softmac_module.c | 32 +- 18 files changed, 611 insertions(+), 72 deletions(-) create mode 100644 drivers/net/wireless/zd1211rw/zd_rf_uw2453.c
drivers/net/wireless/bcm43xx/bcm43xx_phy.c +1 -1
@@ -1638,7 +1638,7 @@ void bcm43xx_phy_set_baseband_attenuation(struct bcm43xx_private *bcm,return ; } -if (phy->analog >1 ) { +if (phy->analog ==1 ) { value =bcm43xx_phy_read (bcm,0x0060 ) & ~0x003C ; value |= (baseband_attenuation <<2 ) &0x003C ; }else {
drivers/net/wireless/hostap/hostap_ap.c +12 -22
@@ -326,7 +326,6 @@ static int ap_control_proc_read(char *page, char **start, off_t off,char *p = page;struct ap_data *ap = (struct ap_data *) data;char *policy_txt; -struct list_head *ptr;struct mac_entry *entry;if (off !=0 ) {
@@ -352,14 +351,12 @@ static int ap_control_proc_read(char *page, char **start, off_t off, p +=sprintf (p,"MAC entries: %u\n" , ap->mac_restrictions.entries); p +=sprintf (p,"MAC list:\n" );spin_lock_bh (&ap->mac_restrictions.lock); -for (ptr = ap->mac_restrictions.mac_list.next; - ptr != &ap->mac_restrictions.mac_list; ptr = ptr->next) { +list_for_each_entry (entry, &ap->mac_restrictions.mac_list, list) {if (p - page >PAGE_SIZE -80 ) { p +=sprintf (p,"All entries did not fit one page.\n" );break ; } - entry = list_entry(ptr, struct mac_entry, list); p +=sprintf (p,MACSTR "\n" ,MAC2STR (entry->addr)); }spin_unlock_bh (&ap->mac_restrictions.lock);
@@ -413,7 +410,6 @@ int ap_control_del_mac(struct mac_restrictions *mac_restrictions, u8 *mac)static int ap_control_mac_deny (struct mac_restrictions *mac_restrictions,u8 *mac) { -struct list_head *ptr;struct mac_entry *entry;int found =0 ;
@@ -421,10 +417,7 @@ static int ap_control_mac_deny(struct mac_restrictions *mac_restrictions,return 0 ;spin_lock_bh (&mac_restrictions->lock); -for (ptr = mac_restrictions->mac_list.next; - ptr != &mac_restrictions->mac_list; ptr = ptr->next) { - entry = list_entry(ptr, struct mac_entry, list); - +list_for_each_entry (entry, &mac_restrictions->mac_list, list) {if (memcmp (entry->addr, mac,ETH_ALEN ) ==0 ) { found =1 ;break ;
@@ -519,7 +512,7 @@ static int prism2_ap_proc_read(char *page, char **start, off_t off, {char *p = page;struct ap_data *ap = (struct ap_data *) data; -struct list_head *ptr; +struct sta_info *sta;int i;if (off >PROC_LIMIT ) {
@@ -529,9 +522,7 @@ static int prism2_ap_proc_read(char *page, char **start, off_t off, p +=sprintf (p,"# BSSID CHAN SIGNAL NOISE RATE SSID FLAGS\n" );spin_lock_bh (&ap->sta_table_lock); -for (ptr = ap->sta_list.next; ptr != &ap->sta_list; ptr = ptr->next) { -struct sta_info *sta = (struct sta_info *) ptr; - +list_for_each_entry (sta, &ap->sta_list, list) {if (!sta->ap)continue ;
@@ -861,7 +852,7 @@ void hostap_init_ap_proc(local_info_t *local)void hostap_free_data (struct ap_data *ap) { -struct list_head *n, *ptr; +struct sta_info *n, *sta;if (ap ==NULL || !ap->initialized) { printk(KERN_DEBUG "hostap_free_data: ap has not yet been "
@@ -875,8 +866,7 @@ void hostap_free_data(struct ap_data *ap) ap->crypt = ap->crypt_priv =NULL ;#endif /* PRISM2_NO_KERNEL_IEEE80211_MGMT */ -list_for_each_safe (ptr, n, &ap->sta_list) { - struct sta_info *sta = list_entry(ptr, struct sta_info, list); +list_for_each_entry_safe (sta, n, &ap->sta_list, list) {ap_sta_hash_del (ap, sta);list_del (&sta->list);if ((sta->flags &WLAN_STA_ASSOC ) && !sta->ap && sta->local)
@@ -2704,6 +2694,8 @@ ap_tx_ret hostap_handle_sta_tx(local_info_t *local, struct hostap_tx_data *tx)if (hdr->addr1[0 ] &0x01 ) {/* broadcast/multicast frame - no AP related processing */ +if (local->ap->num_sta <=0 ) + ret =AP_TX_DROP ; goto out; }
@@ -3198,15 +3190,14 @@ int hostap_update_rx_stats(struct ap_data *ap,void hostap_update_rates (local_info_t *local) { -struct list_head *ptr; +struct sta_info *sta;struct ap_data *ap = local->ap;if (!ap)return ;spin_lock_bh (&ap->sta_table_lock); -for (ptr = ap->sta_list.next; ptr != &ap->sta_list; ptr = ptr->next) { -struct sta_info *sta = (struct sta_info *) ptr; +list_for_each_entry (sta, &ap->sta_list, list) {prism2_check_tx_rates (sta); }spin_unlock_bh (&ap->sta_table_lock);
@@ -3242,11 +3233,10 @@ void * ap_crypt_get_ptrs(struct ap_data *ap, u8 *addr, int permanent,void hostap_add_wds_links (local_info_t *local) {struct ap_data *ap = local->ap; -struct list_head *ptr; +struct sta_info *sta;spin_lock_bh (&ap->sta_table_lock); -list_for_each (ptr, &ap->sta_list) { - struct sta_info *sta = list_entry(ptr, struct sta_info, list); +list_for_each_entry (sta, &ap->sta_list, list) {if (sta->ap)hostap_wds_link_oper (local, sta->addr,WDS_ADD ); }
drivers/net/wireless/hostap/hostap_config.h +0 -2
@@ -1,8 +1,6 @@#ifndef HOSTAP_CONFIG_H #define HOSTAP_CONFIG_H -#define PRISM2_VERSION "0.4.4-kernel" -/* In the previous versions of Host AP driver, support for user space version * of IEEE 802.11 management (hostapd) used to be disabled in the default * configuration. From now on, support for hostapd is always included and it is
drivers/net/wireless/hostap/hostap_cs.c +0 -4
@@ -22,7 +22,6 @@#include "hostap_wlan.h" -static char *version =PRISM2_VERSION " (Jouni Malinen <[email protected]>)" ;static dev_info_t dev_info ="hostap_cs" ;MODULE_AUTHOR ("Jouni Malinen" );
@@ -30,7 +29,6 @@ MODULE_DESCRIPTION("Support for Intersil Prism2-based 802.11 wireless LAN " "cards (PC Card).");MODULE_SUPPORTED_DEVICE ("Intersil Prism2-based WLAN cards (PC Card)" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION (PRISM2_VERSION );static int ignore_cis_vcc;
@@ -910,14 +908,12 @@ static struct pcmcia_driver hostap_driver = {static int __init init_prism2_pccard (void ) { -printk (KERN_INFO "%s: %s\n" , dev_info, version);return pcmcia_register_driver (&hostap_driver); } static void __exit exit_prism2_pccard(void) {pcmcia_unregister_driver (&hostap_driver); -printk (KERN_INFO "%s: Driver unloaded\n" , dev_info); }
drivers/net/wireless/hostap/hostap_ioctl.c +0 -2
@@ -3893,8 +3893,6 @@ static void prism2_get_drvinfo(struct net_device *dev, local = iface->local;strncpy (info->driver,"hostap" ,sizeof (info->driver) -1 ); -strncpy (info->version,PRISM2_VERSION , -sizeof (info->version) -1 ); snprintf(info->fw_version, sizeof(info->fw_version) - 1, "%d.%d.%d", (local->sta_fw_ver >> 16) & 0xff, (local->sta_fw_ver >> 8) & 0xff,
drivers/net/wireless/hostap/hostap_main.c +0 -1
@@ -37,7 +37,6 @@MODULE_AUTHOR ("Jouni Malinen" );MODULE_DESCRIPTION ("Host AP common routines" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION (PRISM2_VERSION );#define TX_TIMEOUT (2 * HZ)
drivers/net/wireless/hostap/hostap_pci.c +0 -5
@@ -20,7 +20,6 @@#include "hostap_wlan.h" -static char *version =PRISM2_VERSION " (Jouni Malinen <[email protected]>)" ;static char *dev_info ="hostap_pci" ;
@@ -29,7 +28,6 @@ MODULE_DESCRIPTION("Support for Intersil Prism2.5-based 802.11 wireless LAN " "PCI cards.");MODULE_SUPPORTED_DEVICE ("Intersil Prism2.5-based WLAN PCI cards" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION (PRISM2_VERSION );/* struct local_info::hw_priv */
@@ -462,8 +460,6 @@ static struct pci_driver prism2_pci_drv_id = {static int __init init_prism2_pci (void ) { -printk (KERN_INFO "%s: %s\n" , dev_info, version); -return pci_register_driver (&prism2_pci_drv_id); }
@@ -471,7 +467,6 @@ static int __init init_prism2_pci(void) static void __exit exit_prism2_pci(void) {pci_unregister_driver (&prism2_pci_drv_id); -printk (KERN_INFO "%s: Driver unloaded\n" , dev_info); }
drivers/net/wireless/hostap/hostap_plx.c +0 -5
@@ -23,7 +23,6 @@#include "hostap_wlan.h" -static char *version =PRISM2_VERSION " (Jouni Malinen <[email protected]>)" ;static char *dev_info ="hostap_plx" ;
@@ -32,7 +31,6 @@ MODULE_DESCRIPTION("Support for Intersil Prism2-based 802.11 wireless LAN " "cards (PLX).");MODULE_SUPPORTED_DEVICE ("Intersil Prism2-based WLAN cards (PLX)" );MODULE_LICENSE ("GPL" ); -MODULE_VERSION (PRISM2_VERSION );static int ignore_cis;
@@ -623,8 +621,6 @@ static struct pci_driver prism2_plx_drv_id = {static int __init init_prism2_plx (void ) { -printk (KERN_INFO "%s: %s\n" , dev_info, version); -return pci_register_driver (&prism2_plx_drv_id); }
@@ -632,7 +628,6 @@ static int __init init_prism2_plx(void) static void __exit exit_prism2_plx(void) {pci_unregister_driver (&prism2_plx_drv_id); -printk (KERN_INFO "%s: Driver unloaded\n" , dev_info); }
drivers/net/wireless/zd1211rw/Makefile +1 -1
@@ -3,7 +3,7 @@ obj-$(CONFIG_ZD1211RW) += zd1211rw.o zd1211rw-objs := zd_chip.o zd_ieee80211.o \ zd_mac.o zd_netdev.o \ zd_rf_al2230.o zd_rf_rf2959.o \ - zd_rf_al7230b.o \ + zd_rf_al7230b.o zd_rf_uw2453.o \ zd_rf.o zd_usb.o zd_util.o ifeq ($(CONFIG_ZD1211RW_DEBUG),y)
drivers/net/wireless/zd1211rw/zd_chip.c +4 -1
@@ -1253,6 +1253,9 @@ static int update_channel_integration_and_calibration(struct zd_chip *chip, {int r; +if (!zd_rf_should_update_pwr_int (&chip->rf)) +return 0 ; + r =update_pwr_int (chip, channel);if (r)return r;
@@ -1283,7 +1286,7 @@ static int patch_cck_gain(struct zd_chip *chip)int r;u32 value; -if (!chip->patch_cck_gain) +if (!chip->patch_cck_gain || !zd_rf_should_patch_cck_gain (&chip->rf))return 0 ;ZD_ASSERT (mutex_is_locked (&chip->mutex));
drivers/net/wireless/zd1211rw/zd_chip.h +3 -0
@@ -608,6 +608,9 @@ enum {#define CR_ZD1211B_TXOP CTL_REG(0x0b20)#define CR_ZD1211B_RETRY_MAX CTL_REG(0x0b28) +/* Used to detect PLL lock */ +#define UW2453_INTR_REG ((zd_addr_t)0x85c1) +#define CWIN_SIZE 0x007f043f
drivers/net/wireless/zd1211rw/zd_rf.c +14 -7
@@ -52,34 +52,38 @@ const char *zd_rf_name(u8 type)void zd_rf_init (struct zd_rf *rf) {memset (rf,0 ,sizeof (*rf)); + +/* default to update channel integration, as almost all RF's do want +* this */ + rf->update_channel_int =1 ; }void zd_rf_clear (struct zd_rf *rf) { +if (rf->clear) + rf->clear (rf);ZD_MEMCLEAR (rf,sizeof (*rf)); }int zd_rf_init_hw (struct zd_rf *rf,u8 type) { -int r, t; +int r =0 ; +int t;struct zd_chip *chip =zd_rf_to_chip (rf);ZD_ASSERT (mutex_is_locked (&chip->mutex));switch (type) {case RF2959_RF : r =zd_rf_init_rf2959 (rf); -if (r) -return r;break ;case AL2230_RF : r =zd_rf_init_al2230 (rf); -if (r) -return r;break ;case AL7230B_RF : r =zd_rf_init_al7230b (rf); -if (r) -return r; +break ; +case UW2453_RF : + r =zd_rf_init_uw2453 (rf);break ;default : dev_err(zd_chip_dev(chip),
@@ -88,6 +92,9 @@ int zd_rf_init_hw(struct zd_rf *rf, u8 type)return -ENODEV ; } +if (r) +return r; + rf->type = type; r =zd_chip_lock_phy_regs (chip);
drivers/net/wireless/zd1211rw/zd_rf.h +28 -0
@@ -48,12 +48,26 @@ struct zd_rf {u8 channel; +/* whether channel integration and calibration should be updated +* defaults to 1 (yes) */ + u8 update_channel_int:1; + +/* whether CR47 should be patched from the EEPROM, if the appropriate +* flag is set in the POD. The vendor driver suggests that this should +* be done for all RF's, but a bug in their code prevents but their +* HW_OverWritePhyRegFromE2P() routine from ever taking effect. */ + u8 patch_cck_gain:1; + +/* private RF driver data */ +void *priv; +/* RF-specific functions */ int (*init_hw)(struct zd_rf *rf);int (*set_channel)(struct zd_rf *rf,u8 channel);int (*switch_radio_on)(struct zd_rf *rf);int (*switch_radio_off)(struct zd_rf *rf);int (*patch_6m_band_edge)(struct zd_rf *rf,u8 channel); +void (*clear)(struct zd_rf *rf); };const char *zd_rf_name (u8 type);
@@ -71,10 +85,24 @@ int zd_switch_radio_off(struct zd_rf *rf);int zd_rf_patch_6m_band_edge (struct zd_rf *rf,u8 channel);int zd_rf_generic_patch_6m (struct zd_rf *rf,u8 channel); +static inline int zd_rf_should_update_pwr_int (struct zd_rf *rf) +{ +return rf->update_channel_int; +} + +static inline int zd_rf_should_patch_cck_gain (struct zd_rf *rf) +{ +return rf->patch_cck_gain; +} + +int zd_rf_patch_6m_band_edge (struct zd_rf *rf,u8 channel); +int zd_rf_generic_patch_6m (struct zd_rf *rf,u8 channel); +/* Functions for individual RF chips */ int zd_rf_init_rf2959 (struct zd_rf *rf);int zd_rf_init_al2230 (struct zd_rf *rf);int zd_rf_init_al7230b (struct zd_rf *rf); +int zd_rf_init_uw2453 (struct zd_rf *rf);#endif /* _ZD_RF_H */
drivers/net/wireless/zd1211rw/zd_rf_al2230.c +1 -0
@@ -432,5 +432,6 @@ int zd_rf_init_al2230(struct zd_rf *rf) rf->switch_radio_on = zd1211_al2230_switch_radio_on; } rf->patch_6m_band_edge = zd_rf_generic_patch_6m; + rf->patch_cck_gain =1 ;return 0 ; }
drivers/net/wireless/zd1211rw/zd_rf_al7230b.c +1 -0
@@ -483,6 +483,7 @@ int zd_rf_init_al7230b(struct zd_rf *rf) rf->switch_radio_on = zd1211_al7230b_switch_radio_on; rf->set_channel = zd1211_al7230b_set_channel; rf->patch_6m_band_edge = zd_rf_generic_patch_6m; + rf->patch_cck_gain =1 ; } rf->switch_radio_off = al7230b_switch_radio_off;
drivers/net/wireless/zd1211rw/zd_rf_uw2453.c new file +534 -0
534 lines not on this page · raw message
drivers/net/wireless/zd1211rw/zd_usb.c +1 -0
@@ -54,6 +54,7 @@ static struct usb_device_id usb_ids[] = { { USB_DEVICE(0x0586, 0x3401), .driver_info = DEVICE_ZD1211 }, { USB_DEVICE(0x14ea, 0xab13), .driver_info = DEVICE_ZD1211 }, { USB_DEVICE(0x13b1, 0x001e), .driver_info = DEVICE_ZD1211 }, + { USB_DEVICE(0x0586, 0x3407), .driver_info = DEVICE_ZD1211 }, /* ZD1211B */ { USB_DEVICE(0x0ace, 0x1215), .driver_info = DEVICE_ZD1211B }, { USB_DEVICE(0x157e, 0x300d), .driver_info = DEVICE_ZD1211B },
net/ieee80211/softmac/ieee80211softmac_module.c +11 -21
@@ -456,18 +456,13 @@ void ieee80211softmac_add_network_locked(struct ieee80211softmac_device *mac, struct ieee80211softmac_network *add_net) { - struct list_head *list_ptr; -struct ieee80211softmac_network *softmac_net =NULL ; + struct ieee80211softmac_network *softmac_net; -list_for_each (list_ptr, &mac->network_list) { - softmac_net = list_entry(list_ptr, struct ieee80211softmac_network, list); +list_for_each_entry (softmac_net, &mac->network_list, list) {if (!memcmp (softmac_net->bssid, add_net->bssid,ETH_ALEN )) -break ; -else - softmac_net =NULL ; +return ; } -if (softmac_net ==NULL ) -list_add (&(add_net->list), &mac->network_list); +list_add (&(add_net->list), &mac->network_list); }/* Add a network to the list, with locking */
@@ -506,16 +501,13 @@ struct ieee80211softmac_network * ieee80211softmac_get_network_by_bssid_locked(struct ieee80211softmac_device *mac, u8 *bssid) { - struct list_head *list_ptr; -struct ieee80211softmac_network *softmac_net =NULL ; -list_for_each (list_ptr, &mac->network_list) { - softmac_net = list_entry(list_ptr, struct ieee80211softmac_network, list); + struct ieee80211softmac_network *softmac_net; + +list_for_each_entry (softmac_net, &mac->network_list, list) {if (!memcmp (softmac_net->bssid, bssid,ETH_ALEN )) -break ; -else - softmac_net =NULL ; +return softmac_net; } -return softmac_net; +return NULL ; }/* Get a network from the list by BSSID with locking */
@@ -537,11 +529,9 @@ struct ieee80211softmac_network * ieee80211softmac_get_network_by_essid_locked(struct ieee80211softmac_device *mac, struct ieee80211softmac_essid *essid) { - struct list_head *list_ptr; -struct ieee80211softmac_network *softmac_net =NULL ; + struct ieee80211softmac_network *softmac_net; -list_for_each (list_ptr, &mac->network_list) { - softmac_net = list_entry(list_ptr, struct ieee80211softmac_network, list); +list_for_each_entry (softmac_net, &mac->network_list, list) {if (softmac_net->essid.len == essid->len && !memcmp (softmac_net->essid.data, essid->data, essid->len))return softmac_net;
Signature · 2 lines
John W. Linville [email protected]
Quoted 12 lines · John W. Linville
The following changes since commit
c420bc9f09a0926b708c3edb27eacba434a4f4ba:
Linus Torvalds (1):Linux 2.6.22-rc3are found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitupstream-fixesAkinobu Mita (2):
ieee80211: fix incomplete error message
softmac:alloc_ieee80211()NULL check
Quoted 5 lines
Björn Steinbrink (1):
prism54: fix monitor mode oopsBrandon Craig Rhodes (1):
hostap: Allocate enough tailroom for TKIP
pulled
Re: Please pull 'upstream' branch of wireless-2.6
In reply to John W. LinvilleQuoted 41 lines · John W. Linville
The following changes since commit
d7ea3be56adc95b17351221fd95e78115f3b01f4:
Brandon Craig Rhodes (1):
hostap: Allocate enough tailroom for TKIPare found in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.gitupstreamAkinobu Mita (1):
softmac: uselist_for_each_entryDaniel Drake (4):
zd1211rw: Add ID for ZyXEL G-200v2
zd1211rw: Extend RF layer
zd1211rw: Add UW2453 RF support
zd1211rw: Make CCK gain patching conditional on RF typeJouni Malinen (1):
hostap: Remove driver version numberLarry Finger (1):
bcm43xx: Fix deviation from specifications inset_baseband_attenuationMatthias Kaehlcke (1):
hostap: Uselist_for_each_entryPavel Roskin (1):
hostap: Suppress broadcast if no stations are associateddrivers/net/wireless/bcm43xx/bcm43xx_phy.c | 2 +- drivers/net/wireless/hostap/hostap_ap.c | 34 +- drivers/net/wireless/hostap/hostap_config.h | 2 - drivers/net/wireless/hostap/hostap_cs.c | 4 - drivers/net/wireless/hostap/hostap_ioctl.c | 2 - drivers/net/wireless/hostap/hostap_main.c | 1 - drivers/net/wireless/hostap/hostap_pci.c | 5 - drivers/net/wireless/hostap/hostap_plx.c | 5 - drivers/net/wireless/zd1211rw/Makefile | 2 +- drivers/net/wireless/zd1211rw/zd_chip.c | 5 +- drivers/net/wireless/zd1211rw/zd_chip.h | 3 + drivers/net/wireless/zd1211rw/zd_rf.c | 21 +-
Quoted 8 lines
drivers/net/wireless/zd1211rw/zd_rf.h | 28 ++ drivers/net/wireless/zd1211rw/zd_rf_al2230.c | 1 + drivers/net/wireless/zd1211rw/zd_rf_al7230b.c | 1 + drivers/net/wireless/zd1211rw/zd_rf_uw2453.c | 534 +++++++++++++++++++++++ drivers/net/wireless/zd1211rw/zd_usb.c | 1 + net/ieee80211/softmac/ieee80211softmac_module.c | 32 +- 18 files changed, 611 insertions(+), 72 deletions(-) create mode 100644 drivers/net/wireless/zd1211rw/zd_rf_uw2453.c
pulled