pull request: wireless-2.6 2008-07-29
Subsystems (9)
Dave,
A rather large set of patches to fix some of the problems that have been festering in Linus's tree for the last week or so...I apologize for my absence while I dallied in sunny Ottawa...
Please let me know if there are problems!
Thanks,
John
---
Individual patches are available here:
http://www.kernel.org/pub/linux/kernel/people/linville/wireless-2.6/
---
The following changes since commit 281c7413ed914623d3245299a4761b6b27ab9fdb:
David S. Miller (1):
Merge branch 'master' of master.kernel.org:/.../torvalds/linux-2.6
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git master
Andrew Morton (1):
drivers/net/wireless/iwlwifi/iwl-led.c: printk fix
Bob Copeland (2):
ath5k: use positive logic for HP laptop LEDs
ath5k: fix recursive locking in ath5k_beacon_update
Brian Cavagnolo (1):
libertas: check bounds and only use decimal for sysfs persistent features.
Denis V. Lunev (2):
iwlwifi: compilation error when CONFIG_IWLWIFI_DEBUG is not set
iwlwifi: small compile warnings without CONFIG_IWLWIFI_DEBUG
Harvey Harrison (1):
mac80211: fix sparse integer as NULL pointer warning
Henrique de Moraes Holschuh (5):
rfkill: document rfkill_force_state as required (v2)
rfkill: fix led-trigger unregister order in error unwind
rfkill: document the rfkill struct locking (v2)
rfkill: mutex fixes
rfkill: yet more minor kernel-doc fixes
Ivo van Doorn (6):
rt2x00: Remove duplicate declaration
rt2x00: Fix EIFS timing value
rt2x00: Fix QOS sequence counting
rt2x00: Fix memleak when RTS/CTS fails
rt2x00: Force full register config after start()
rt2x00: Clear queue entry flags during initialization
Iwo Mergler (3):
rt2x00: Support for large vendor requests
rt2x00: Large vendor requests for rt73usb firmware upload and beacons
rt2x00: Fix the beacon length bug
Jeremy Fitzhardinge (1):
mac80211: return correct error return from ieee80211_wep_init
Jiri Slaby (6):
Ath5k: fix memory corruption
Ath5k: kill tasklets on shutdown
Ath5k: flush work
Ath5k: fix dma operation
Ath5k: suspend/resume fixes
mac80211: tx, use dev_kfree_skb_any for beacon_get
Johannes Berg (4):
mac80211: remove IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE flag
mac80211: partially fix skb->cb use
nl80211: fix dump callbacks
mac80211: fix cfg80211 hooks for master interface
Julia Lawall (2):
drivers/net/wireless/ipw2100.c: Release mutex in error handling code
b43legacy: Release mutex in error handling code
Larry Finger (2):
rtl8187: Fix for TX sequence number problem
rtl8187: Improve wireless statistics for RTL8187B
Luis Carlos Cobo (1):
mac80211: fix mesh beaconing
Pavel Roskin (1):
ath5k: don't enable MSI, we cannot handle it yet
Rami Rosen (2):
iwl-3945: add #ifdef CONFIG_IWL3945_LEDS to avoid compile warning.
mac80211: append CONFIG_ to MAC80211_VERBOSE_PS_DEBUG in net/mac80211/tx.c.
Vegard Nossum (1):
PS3: gelic: use unsigned long for irqflags
Documentation/rfkill.txt | 20 ++- drivers/net/ps3_gelic_wireless.c | 12 +- drivers/net/wireless/ath5k/base.c | 99 ++++++---- drivers/net/wireless/ath5k/base.h | 2 +- drivers/net/wireless/ath5k/hw.c | 4 + drivers/net/wireless/b43/main.c | 3 +- drivers/net/wireless/b43/xmit.c | 2 +- drivers/net/wireless/b43legacy/main.c | 5 +- drivers/net/wireless/b43legacy/xmit.c | 2 +- drivers/net/wireless/ipw2100.c | 3 +- drivers/net/wireless/iwlwifi/iwl-3945.c | 2 + drivers/net/wireless/iwlwifi/iwl-core.c | 3 +- drivers/net/wireless/iwlwifi/iwl-debug.h | 8 +- drivers/net/wireless/iwlwifi/iwl-led.c | 4 +- drivers/net/wireless/iwlwifi/iwl-scan.c | 2 + drivers/net/wireless/iwlwifi/iwl-tx.c | 2 +- drivers/net/wireless/iwlwifi/iwl3945-base.c | 5 +- drivers/net/wireless/libertas/persistcfg.c | 30 ++-- drivers/net/wireless/mac80211_hwsim.c | 2 +- drivers/net/wireless/rt2x00/rt2500usb.c | 13 ++- drivers/net/wireless/rt2x00/rt2x00.h | 6 +- drivers/net/wireless/rt2x00/rt2x00config.c | 2 +- drivers/net/wireless/rt2x00/rt2x00dev.c | 7 +- drivers/net/wireless/rt2x00/rt2x00lib.h | 7 - drivers/net/wireless/rt2x00/rt2x00mac.c | 29 ++-- drivers/net/wireless/rt2x00/rt2x00queue.c | 36 ++++- drivers/net/wireless/rt2x00/rt2x00queue.h | 2 + drivers/net/wireless/rt2x00/rt2x00usb.c | 32 +++ drivers/net/wireless/rt2x00/rt2x00usb.h | 22 ++- drivers/net/wireless/rt2x00/rt61pci.c | 4 +- drivers/net/wireless/rt2x00/rt73usb.c | 56 +++---- drivers/net/wireless/rtl8187.h | 11 +- drivers/net/wireless/rtl8187_dev.c | 93 ++++++--- drivers/net/wireless/zd1211rw/zd_mac.c | 1 - include/linux/rfkill.h | 8 +- include/linux/skbuff.h | 5 +- include/net/mac80211.h | 7 - net/core/skbuff.c | 3 + net/mac80211/cfg.c | 103 +++++++++-- net/mac80211/main.c | 12 +- net/mac80211/mlme.c | 9 +- net/mac80211/tx.c | 55 +++--- net/mac80211/wep.c | 4 +- net/mac80211/wme.c | 3 + net/rfkill/rfkill.c | 62 ++++--- net/wireless/nl80211.c | 277 +++++++++++++++------------ 46 files changed, 674 insertions(+), 405 deletions(-)
Documentation/rfkill.txt +16 -4
@@ -390,9 +390,10 @@ rfkill lines are inactive, it must return RFKILL_STATE_SOFT_BLOCKED if its soft rfkill input line is active. Only if none of the rfkill input lines are active, will it return RFKILL_STATE_UNBLOCKED. -If it doesn't implement the get_state() hook, it must make sure that its calls -to rfkill_force_state() are enough to keep the status always up-to-date, and it -must do a rfkill_force_state() on resume from sleep. +Since the device has a hardware rfkill line, it IS subject to state changes +external to rfkill. Therefore, the driver must make sure that it calls +rfkill_force_state() to keep the status always up-to-date, and it must do a +rfkill_force_state() on resume from sleep. Every time the driver gets a notification from the card that one of its rfkill lines changed state (polling might be needed on badly designed cards that don't
@@ -422,13 +423,24 @@ of the hardware is unknown), or read-write (where the hardware can be queried about its current state). The rfkill class will call the get_state hook of a device every time it needs -to know the *real* current state of the hardware. This can happen often. +to know the *real* current state of the hardware. This can happen often, but +it does not do any polling, so it is not enough on hardware that is subject +to state changes outside of the rfkill subsystem. + +Therefore, calling rfkill_force_state() when a state change happens is +mandatory when the device has a hardware rfkill line, or when something else +like the firmware could cause its state to be changed without going through the +rfkill class. Some hardware provides events when its status changes. In these cases, it is best for the driver to not provide a get_state hook, and instead register the rfkill class *already* with the correct status, and keep it updated using rfkill_force_state() when it gets an event from the hardware. +rfkill_force_state() must be used on the device resume handlers to update the +rfkill status, should there be any chance of the device status changing during +the sleep. + There is no provision for a statically-allocated rfkill struct. You must use rfkill_allocate() to allocate one.
drivers/net/ps3_gelic_wireless.c +6 -6
@@ -1024,7 +1024,7 @@ static int gelic_wl_set_encode(struct net_device *netdev,struct gelic_wl_info *wl =port_wl (netdev_priv (netdev));struct iw_point *enc = &data->encoding;__u16 flags; -unsigned int irqflag; +unsigned long irqflag;int key_index, index_specified;int ret =0 ;
@@ -1097,7 +1097,7 @@ static int gelic_wl_get_encode(struct net_device *netdev, {struct gelic_wl_info *wl =port_wl (netdev_priv (netdev));struct iw_point *enc = &data->encoding; -unsigned int irqflag; +unsigned long irqflag;unsigned int key_index, index_specified;int ret =0 ;
@@ -1215,7 +1215,7 @@ static int gelic_wl_set_encodeext(struct net_device *netdev,struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;__u16 alg;__u16 flags; -unsigned int irqflag; +unsigned long irqflag;int key_index;int ret =0 ;
@@ -1303,7 +1303,7 @@ static int gelic_wl_get_encodeext(struct net_device *netdev,struct gelic_wl_info *wl =port_wl (netdev_priv (netdev));struct iw_point *enc = &data->encoding;struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; -unsigned int irqflag; +unsigned long irqflag;int key_index;int ret =0 ;int max_key_len;
@@ -1426,7 +1426,7 @@ static int gelic_wl_priv_set_psk(struct net_device *net_dev, {struct gelic_wl_info *wl =port_wl (netdev_priv (net_dev));unsigned int len; -unsigned int irqflag; +unsigned long irqflag;int ret =0 ;pr_debug ("%s:<- len=%d\n" , __func__, data->data.length);
@@ -1467,7 +1467,7 @@ static int gelic_wl_priv_get_psk(struct net_device *net_dev, {struct gelic_wl_info *wl =port_wl (netdev_priv (net_dev));char *p; -unsigned int irqflag; +unsigned long irqflag;unsigned int i;pr_debug ("%s:<-\n" , __func__);
drivers/net/wireless/ath5k/base.c +63 -36
280 lines not on this page · raw message
drivers/net/wireless/ath5k/base.h +1 -1
@@ -56,7 +56,7 @@struct ath5k_buf {struct list_head list; -unsigned int flags;/* tx descriptor flags */ +unsigned int flags;/* rx descriptor flags */ struct ath5k_desc *desc;/* virtual addr of desc */ dma_addr_t daddr;/* physical addr of desc */ struct sk_buff *skb;/* skbuff for buf */
drivers/net/wireless/ath5k/hw.c +4 -0
@@ -1440,6 +1440,7 @@ int ath5k_hw_stop_tx_dma(struct ath5k_hw *ah, unsigned int queue)/* Stop queue */ ath5k_hw_reg_write (ah, tx_queue,AR5K_CR ); +ath5k_hw_reg_read (ah,AR5K_CR ); }else {/* * Schedule TX disable and wait until queue is empty
@@ -1456,6 +1457,8 @@ int ath5k_hw_stop_tx_dma(struct ath5k_hw *ah, unsigned int queue)/* Clear register */ ath5k_hw_reg_write (ah,0 ,AR5K_QCU_TXD ); +if (pending) +return -EBUSY ; }/* TODO: Check for success else return error */
@@ -1716,6 +1719,7 @@ enum ath5k_int ath5k_hw_set_intr(struct ath5k_hw *ah, enum ath5k_int new_mask)/* ..re-enable interrupts */ ath5k_hw_reg_write (ah,AR5K_IER_ENABLE ,AR5K_IER ); +ath5k_hw_reg_read (ah,AR5K_IER );return old_mask; }
drivers/net/wireless/b43/main.c +1 -2
@@ -4645,8 +4645,7 @@ static int b43_wireless_init(struct ssb_device *dev) }/* fill hw info */ - hw->flags =IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE | -IEEE80211_HW_RX_INCLUDES_FCS | + hw->flags =IEEE80211_HW_RX_INCLUDES_FCS |IEEE80211_HW_SIGNAL_DBM |IEEE80211_HW_NOISE_DBM ;
drivers/net/wireless/b43/xmit.c +1 -1
@@ -192,7 +192,7 @@ int b43_generate_txhdr(struct b43_wldev *dev,const struct b43_phy *phy = &dev->phy;const struct ieee80211_hdr *wlhdr = (const struct ieee80211_hdr *)fragment_data; -int use_encryption = (!(info->flags &IEEE80211_TX_CTL_DO_NOT_ENCRYPT )); +int use_encryption = !!info->control.hw_key;__le16 fctl = wlhdr->frame_control;struct ieee80211_rate *fbrate;u8 rate, rate_fb;
drivers/net/wireless/b43legacy/main.c +2 -3
@@ -3702,8 +3702,7 @@ static int b43legacy_wireless_init(struct ssb_device *dev) }/* fill hw info */ - hw->flags =IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE | -IEEE80211_HW_RX_INCLUDES_FCS | + hw->flags =IEEE80211_HW_RX_INCLUDES_FCS |IEEE80211_HW_SIGNAL_DBM |IEEE80211_HW_NOISE_DBM ; hw->queues =1 ;/* FIXME: hardware has more queues */
@@ -3846,10 +3845,10 @@ static int b43legacy_resume(struct ssb_device *dev) goto out; } } -mutex_unlock (&wl->mutex);b43legacydbg (wl,"Device resumed.\n" ); out: +mutex_unlock (&wl->mutex);return err; }
drivers/net/wireless/b43legacy/xmit.c +1 -1
@@ -192,7 +192,7 @@ static int generate_txhdr_fw3(struct b43legacy_wldev *dev, u16 cookie) {const struct ieee80211_hdr *wlhdr; -int use_encryption = (!(info->flags &IEEE80211_TX_CTL_DO_NOT_ENCRYPT )); +int use_encryption = !!info->control.hw_key;u16 fctl;u8 rate;struct ieee80211_rate *rate_fb;
drivers/net/wireless/ipw2100.c +2 -1
@@ -6442,6 +6442,7 @@ static int ipw2100_resume(struct pci_dev *pci_dev)if (err) {printk (KERN_ERR "%s: pci_enable_device failed on resume\n" , dev->name); +mutex_unlock (&priv->action_mutex);return err; }pci_restore_state (pci_dev);
@@ -7146,7 +7147,7 @@ static int ipw2100_wx_get_rate(struct net_device *dev, err =ipw2100_get_ordinal (priv,IPW_ORD_CURRENT_TX_RATE , &val, &len);if (err) {IPW_DEBUG_WX ("failed querying ordinals.\n" ); -return err; + goto done; }switch (val &TX_RATE_MASK ) {
drivers/net/wireless/iwlwifi/iwl-3945.c +2 -0
@@ -630,7 +630,9 @@ static void iwl3945_pass_packet_to_mac80211(struct iwl3945_priv *priv, struct ieee80211_rx_status *stats) {struct iwl3945_rx_packet *pkt = (struct iwl3945_rx_packet *)rxb->skb->data; +#ifdef CONFIG_IWL3945_LEDS struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)IWL_RX_DATA (pkt); +#endif struct iwl3945_rx_frame_hdr *rx_hdr =IWL_RX_HDR (pkt);struct iwl3945_rx_frame_end *rx_end =IWL_RX_END (pkt);short len =le16_to_cpu (rx_hdr->len);
drivers/net/wireless/iwlwifi/iwl-core.c +1 -2
@@ -818,8 +818,7 @@ int iwl_setup_mac(struct iwl_priv *priv) hw->rate_control_algorithm ="iwl-4965-rs" ;/* Tell mac80211 our characteristics */ - hw->flags =IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE | -IEEE80211_HW_SIGNAL_DBM | + hw->flags =IEEE80211_HW_SIGNAL_DBM |IEEE80211_HW_NOISE_DBM ;/* Default value; 4 EDCA QOS priorities */ hw->queues =4 ;
drivers/net/wireless/iwlwifi/iwl-debug.h +2 -6
@@ -68,12 +68,8 @@ void iwl_dbgfs_unregister(struct iwl_priv *priv);#endif #else -static inline void IWL_DEBUG (int level,const char *fmt, ...) -{ -} -static inline void IWL_DEBUG_LIMIT (int level,const char *fmt, ...) -{ -} +#define IWL_DEBUG(level, fmt, args...) +#define IWL_DEBUG_LIMIT(level, fmt, args...)#endif /* CONFIG_IWLWIFI_DEBUG */
drivers/net/wireless/iwlwifi/iwl-led.c +3 -1
@@ -268,7 +268,9 @@ static int iwl_get_blink_rate(struct iwl_priv *priv)if (tpt <0 )/* wrapparound */ tpt = -tpt; -IWL_DEBUG_LED ("tpt %lld current_tpt %lld\n" , tpt, current_tpt); +IWL_DEBUG_LED ("tpt %lld current_tpt %llu\n" , + (long long )tpt, + (unsigned long long )current_tpt); priv->led_tpt = current_tpt;if (!priv->allow_blinking)
drivers/net/wireless/iwlwifi/iwl-scan.c +2 -0
@@ -270,6 +270,7 @@ static void iwl_rx_scan_results_notif(struct iwl_priv *priv,static void iwl_rx_scan_complete_notif (struct iwl_priv *priv,struct iwl_rx_mem_buffer *rxb) { +#ifdef CONFIG_IWLWIFI_DEBUG struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data;struct iwl_scancomplete_notification *scan_notif = (void *)pkt->u.raw;
@@ -277,6 +278,7 @@ static void iwl_rx_scan_complete_notif(struct iwl_priv *priv, scan_notif->scanned_channels, scan_notif->tsf_low, scan_notif->tsf_high, scan_notif->status); +#endif /* The HW is no longer scanning */ clear_bit (STATUS_SCAN_HW , &priv->status);
drivers/net/wireless/iwlwifi/iwl-tx.c +1 -1
@@ -906,7 +906,7 @@ int iwl_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)* first entry */ iwl_hw_txq_attach_buf_to_tfd (priv, tfd, txcmd_phys, len); -if (!(info->flags &IEEE80211_TX_CTL_DO_NOT_ENCRYPT )) +if (info->control.hw_key)iwl_tx_cmd_build_hwcrypto (priv, info, tx_cmd, skb, sta_id);/* Set up TFD's 2nd entry to point directly to remainder of skb,
drivers/net/wireless/iwlwifi/iwl3945-base.c +2 -3
@@ -2667,7 +2667,7 @@ static int iwl3945_tx_skb(struct iwl3945_priv *priv, struct sk_buff *skb)* first entry */ iwl3945_hw_txq_attach_buf_to_tfd (priv, tfd, txcmd_phys, len); -if (!(info->flags &IEEE80211_TX_CTL_DO_NOT_ENCRYPT )) +if (info->control.hw_key)iwl3945_build_tx_cmd_hwcrypto (priv, info, out_cmd, skb,0 );/* Set up TFD's 2nd entry to point directly to remainder of skb,
@@ -7899,8 +7899,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e priv->ibss_beacon =NULL ;/* Tell mac80211 our characteristics */ - hw->flags =IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE | -IEEE80211_HW_SIGNAL_DBM | + hw->flags =IEEE80211_HW_SIGNAL_DBM |IEEE80211_HW_NOISE_DBM ;/* 4 EDCA QOS priorities */
drivers/net/wireless/libertas/persistcfg.c +15 -15
@@ -48,7 +48,7 @@ static ssize_t bootflag_get(struct device *dev,if (ret)return ret; -return snprintf (buf,12 ,"0x%x\n" ,le32_to_cpu (defs.bootflag)); +return snprintf (buf,12 ,"%d\n" ,le32_to_cpu (defs.bootflag)); }/**
@@ -63,8 +63,8 @@ static ssize_t bootflag_set(struct device *dev, struct device_attribute *attr,int ret;memset (&cmd,0 ,sizeof (cmd)); - ret =sscanf (buf,"%x" , &datum); -if (ret !=1 ) + ret =sscanf (buf,"%d" , &datum); +if ((ret !=1 ) || (datum >1 ))return -EINVAL ; *((__le32 *)&cmd.data[0 ]) =cpu_to_le32 (!!datum);
@@ -91,7 +91,7 @@ static ssize_t boottime_get(struct device *dev,if (ret)return ret; -return snprintf (buf,12 ,"0x%x\n" , defs.boottime); +return snprintf (buf,12 ,"%d\n" , defs.boottime); }/**
@@ -106,8 +106,8 @@ static ssize_t boottime_set(struct device *dev,int ret;memset (&cmd,0 ,sizeof (cmd)); - ret =sscanf (buf,"%x" , &datum); -if (ret !=1 ) + ret =sscanf (buf,"%d" , &datum); +if ((ret !=1 ) || (datum >255 ))return -EINVAL ;/* A too small boot time will result in the device booting into
@@ -143,7 +143,7 @@ static ssize_t channel_get(struct device *dev,if (ret)return ret; -return snprintf (buf,12 ,"0x%x\n" ,le16_to_cpu (defs.channel)); +return snprintf (buf,12 ,"%d\n" ,le16_to_cpu (defs.channel)); }/**
@@ -154,11 +154,11 @@ static ssize_t channel_set(struct device *dev, struct device_attribute *attr, {struct lbs_private *priv =to_net_dev (dev)->priv;struct cmd_ds_mesh_config cmd; -uint16_t datum; +uint32_t datum;int ret;memset (&cmd,0 ,sizeof (cmd)); - ret =sscanf (buf,"%hx" , &datum); + ret =sscanf (buf,"%d" , &datum);if (ret !=1 || datum <1 || datum >11 )return -EINVAL ;
@@ -274,8 +274,8 @@ static ssize_t protocol_id_set(struct device *dev,int ret;memset (&cmd,0 ,sizeof (cmd)); - ret =sscanf (buf,"%x" , &datum); -if (ret !=1 ) + ret =sscanf (buf,"%d" , &datum); +if ((ret !=1 ) || (datum >255 ))return -EINVAL ;/* fetch all other Information Element parameters */
@@ -328,8 +328,8 @@ static ssize_t metric_id_set(struct device *dev, struct device_attribute *attr,int ret;memset (&cmd,0 ,sizeof (cmd)); - ret =sscanf (buf,"%x" , &datum); -if (ret !=1 ) + ret =sscanf (buf,"%d" , &datum); +if ((ret !=1 ) || (datum >255 ))return -EINVAL ;/* fetch all other Information Element parameters */
@@ -382,8 +382,8 @@ static ssize_t capability_set(struct device *dev, struct device_attribute *attr,int ret;memset (&cmd,0 ,sizeof (cmd)); - ret =sscanf (buf,"%x" , &datum); -if (ret !=1 ) + ret =sscanf (buf,"%d" , &datum); +if ((ret !=1 ) || (datum >255 ))return -EINVAL ;/* fetch all other Information Element parameters */
drivers/net/wireless/mac80211_hwsim.c +1 -1
@@ -500,7 +500,7 @@ failed_hw:device_unregister (data->dev); failed_drvdata:ieee80211_free_hw (hw); - hwsim_radios[i] =0 ; + hwsim_radios[i] =NULL ; failed:mac80211_hwsim_free ();return err;
drivers/net/wireless/rt2x00/rt2500usb.c +12 -1
@@ -1121,6 +1121,7 @@ static void rt2500usb_write_beacon(struct queue_entry *entry)int pipe =usb_sndbulkpipe (usb_dev,1 );int length;u16 reg; +u32 word, len;/* * Add the descriptor in front of the skb.
@@ -1130,6 +1131,17 @@ static void rt2500usb_write_beacon(struct queue_entry *entry) skbdesc->desc = entry->skb->data;/* +* Adjust the beacon databyte count. The current number is +* calculated before this function gets called, but falsely +* assumes that the descriptor was already present in the SKB. +*/ +rt2x00_desc_read (skbdesc->desc,0 , &word); + len =rt2x00_get_field32 (word,TXD_W0_DATABYTE_COUNT ); + len += skbdesc->desc_len; +rt2x00_set_field32 (&word,TXD_W0_DATABYTE_COUNT , len); +rt2x00_desc_write (skbdesc->desc,0 , word); + +/* * Disable beaconing while we are reloading the beacon data, * otherwise we might be sending out invalid data. */
@@ -1650,7 +1662,6 @@ static void rt2500usb_probe_hw_mode(struct rt2x00_dev *rt2x00dev)* Initialize all hw fields. */ rt2x00dev->hw->flags = -IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE |IEEE80211_HW_RX_INCLUDES_FCS |IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING |IEEE80211_HW_SIGNAL_DBM ;
drivers/net/wireless/rt2x00/rt2x00.h +5 -1
@@ -108,7 +108,10 @@#define SHORT_PIFS ( SIFS + SHORT_SLOT_TIME )#define DIFS ( PIFS + SLOT_TIME )#define SHORT_DIFS ( SHORT_PIFS + SHORT_SLOT_TIME ) -#define EIFS ( SIFS + (8 * (IEEE80211_HEADER + ACK_SIZE)) ) +#define EIFS ( SIFS + DIFS + \ + (8 * (IEEE80211_HEADER + ACK_SIZE)) ) +#define SHORT_EIFS ( SIFS + SHORT_DIFS + \ + (8 * (IEEE80211_HEADER + ACK_SIZE)) )/* * Chipset identification
@@ -597,6 +600,7 @@ enum rt2x00_flags {DEVICE_STARTED_SUSPEND ,DEVICE_ENABLED_RADIO ,DEVICE_DISABLED_RADIO_HW , + DEVICE_DIRTY_CONFIG,/* * Driver features
drivers/net/wireless/rt2x00/rt2x00config.c +1 -1
@@ -271,7 +271,7 @@ config: libconf.sifs =SIFS ; libconf.pifs = short_slot_time ?SHORT_PIFS :PIFS ; libconf.difs = short_slot_time ?SHORT_DIFS :DIFS ; - libconf.eifs =EIFS ; + libconf.eifs = short_slot_time ?SHORT_EIFS :EIFS ; } libconf.conf = conf;
drivers/net/wireless/rt2x00/rt2x00dev.c +4 -3
@@ -1013,6 +1013,7 @@ int rt2x00lib_start(struct rt2x00_dev *rt2x00dev) rt2x00dev->intf_associated =0 ;__set_bit (DEVICE_STARTED , &rt2x00dev->flags); +__set_bit (DEVICE_DIRTY_CONFIG , &rt2x00dev->flags);return 0 ; }
@@ -1237,9 +1238,9 @@ int rt2x00lib_resume(struct rt2x00_dev *rt2x00dev)/* * Reconfigure device. */ -rt2x00lib_config (rt2x00dev, &rt2x00dev->hw->conf,1 ); -if (!rt2x00dev->hw->conf.radio_enabled) -rt2x00lib_disable_radio (rt2x00dev); + retval =rt2x00mac_config (rt2x00dev->hw, &rt2x00dev->hw->conf); +if (retval) + goto exit;/* * Iterator over each active interface to
drivers/net/wireless/rt2x00/rt2x00lib.h +0 -7
@@ -125,13 +125,6 @@ void rt2x00queue_unmap_skb(struct rt2x00_dev *rt2x00dev, struct sk_buff *skb);void rt2x00queue_free_skb (struct rt2x00_dev *rt2x00dev,struct sk_buff *skb);/** -* rt2x00queue_free_skb - free a skb -* @rt2x00dev: Pointer to &struct rt2x00_dev. -* @skb: The skb to free. -*/ -void rt2x00queue_free_skb (struct rt2x00_dev *rt2x00dev,struct sk_buff *skb); - -/** * rt2x00queue_write_tx_frame - Write TX frame to hardware * @queue: Queue over which the frame should be send * @skb: The skb to send
drivers/net/wireless/rt2x00/rt2x00mac.c +14 -15
@@ -63,7 +63,7 @@ static int rt2x00mac_tx_rts_cts(struct rt2x00_dev *rt2x00dev,*/ memcpy (skb->cb, frag_skb->cb,sizeof (skb->cb)); rts_info =IEEE80211_SKB_CB (skb); - rts_info->flags |=IEEE80211_TX_CTL_DO_NOT_ENCRYPT ; + rts_info->control.hw_key =NULL ; rts_info->flags &= ~IEEE80211_TX_CTL_USE_RTS_CTS ; rts_info->flags &= ~IEEE80211_TX_CTL_USE_CTS_PROTECT ; rts_info->flags &= ~IEEE80211_TX_CTL_REQ_TX_STATUS ;
@@ -83,6 +83,7 @@ static int rt2x00mac_tx_rts_cts(struct rt2x00_dev *rt2x00dev, (struct ieee80211_rts *)(skb->data));if (rt2x00queue_write_tx_frame (queue, skb)) { +dev_kfree_skb_any (skb);WARNING (rt2x00dev,"Failed to send RTS/CTS frame.\n" );return NETDEV_TX_BUSY ; }
@@ -96,7 +97,6 @@ int rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb)struct ieee80211_tx_info *tx_info =IEEE80211_SKB_CB (skb);struct ieee80211_hdr *ieee80211hdr = (struct ieee80211_hdr *)skb->data;enum data_queue_qid qid =skb_get_queue_mapping (skb); -struct rt2x00_intf *intf =vif_to_intf (tx_info->control.vif);struct data_queue *queue;u16 frame_control;
@@ -152,18 +152,6 @@ int rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb) } } -/* -* XXX: This is as wrong as the old mac80211 code was, -* due to beacons not getting sequence numbers assigned -* properly. -*/ -if (tx_info->flags &IEEE80211_TX_CTL_ASSIGN_SEQ ) { -if (tx_info->flags &IEEE80211_TX_CTL_FIRST_FRAGMENT ) - intf->seqno +=0x10 ; - ieee80211hdr->seq_ctrl &=cpu_to_le16 (IEEE80211_SCTL_FRAG ); - ieee80211hdr->seq_ctrl |=cpu_to_le16 (intf->seqno); - } -if (rt2x00queue_write_tx_frame (queue, skb)) {ieee80211_stop_queue (rt2x00dev->hw, qid);return NETDEV_TX_BUSY ;
@@ -322,6 +310,7 @@ EXPORT_SYMBOL_GPL(rt2x00mac_remove_interface);int rt2x00mac_config (struct ieee80211_hw *hw,struct ieee80211_conf *conf) {struct rt2x00_dev *rt2x00dev = hw->priv; +int force_reconfig;/* * Mac80211 might be calling this function while we are trying
@@ -341,7 +330,17 @@ int rt2x00mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf)rt2x00lib_toggle_rx (rt2x00dev,STATE_RADIO_RX_OFF ); } -rt2x00lib_config (rt2x00dev, conf,0 ); +/* +* When the DEVICE_DIRTY_CONFIG flag is set, the device has recently +* been started and the configuration must be forced upon the hardware. +* Otherwise registers will not be intialized correctly and could +* result in non-working hardware because essential registers aren't +* initialized. +*/ + force_reconfig = +__test_and_clear_bit (DEVICE_DIRTY_CONFIG , &rt2x00dev->flags); + +rt2x00lib_config (rt2x00dev, conf, force_reconfig);/* * Reenable RX only if the radio should be on.
drivers/net/wireless/rt2x00/rt2x00queue.c +34 -2
@@ -120,6 +120,7 @@ static void rt2x00queue_create_tx_descriptor(struct queue_entry *entry, {struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev;struct ieee80211_tx_info *tx_info =IEEE80211_SKB_CB (entry->skb); +struct rt2x00_intf *intf =vif_to_intf (tx_info->control.vif);struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)entry->skb->data;struct ieee80211_rate *rate =ieee80211_get_tx_rate (rt2x00dev->hw, tx_info);
@@ -200,6 +201,31 @@ static void rt2x00queue_create_tx_descriptor(struct queue_entry *entry, }/* +* Hardware should insert sequence counter. +* FIXME: We insert a software sequence counter first for +* hardware that doesn't support hardware sequence counting. +* +* This is wrong because beacons are not getting sequence +* numbers assigned properly. +* +* A secondary problem exists for drivers that cannot toggle +* sequence counting per-frame, since those will override the +* sequence counter given by mac80211. +*/ +if (tx_info->flags &IEEE80211_TX_CTL_ASSIGN_SEQ ) { +spin_lock (&intf->lock); + +if (test_bit (ENTRY_TXD_FIRST_FRAGMENT , &txdesc->flags)) + intf->seqno +=0x10 ; + hdr->seq_ctrl &=cpu_to_le16 (IEEE80211_SCTL_FRAG ); + hdr->seq_ctrl |=cpu_to_le16 (intf->seqno); + +spin_unlock (&intf->lock); + +__set_bit (ENTRY_TXD_GENERATE_SEQ , &txdesc->flags); + } + +/* * PLCP setup * Length calculation depends on OFDM/CCK rate. */
@@ -466,9 +492,12 @@ void rt2x00queue_init_rx(struct rt2x00_dev *rt2x00dev)if (!rt2x00dev->ops->lib->init_rxentry)return ; -for (i =0 ; i < queue->limit; i++) +for (i =0 ; i < queue->limit; i++) { + queue->entries[i].flags =0 ; + rt2x00dev->ops->lib->init_rxentry (rt2x00dev, &queue->entries[i]); + } }void rt2x00queue_init_tx (struct rt2x00_dev *rt2x00dev)
@@ -482,9 +511,12 @@ void rt2x00queue_init_tx(struct rt2x00_dev *rt2x00dev)if (!rt2x00dev->ops->lib->init_txentry)continue ; -for (i =0 ; i < queue->limit; i++) +for (i =0 ; i < queue->limit; i++) { + queue->entries[i].flags =0 ; + rt2x00dev->ops->lib->init_txentry (rt2x00dev, &queue->entries[i]); + } } }
drivers/net/wireless/rt2x00/rt2x00queue.h +2 -0
@@ -199,6 +199,7 @@ struct txdone_entry_desc {* @ENTRY_TXD_RTS_FRAME: This frame is a RTS frame. * @ENTRY_TXD_CTS_FRAME: This frame is a CTS-to-self frame. * @ENTRY_TXD_OFDM_RATE: This frame is send out with an OFDM rate. +* @ENTRY_TXD_GENERATE_SEQ: This frame requires sequence counter. * @ENTRY_TXD_FIRST_FRAGMENT: This is the first frame. * @ENTRY_TXD_MORE_FRAG: This frame is followed by another fragment. * @ENTRY_TXD_REQ_TIMESTAMP: Require timestamp to be inserted.
@@ -210,6 +211,7 @@ enum txentry_desc_flags {ENTRY_TXD_RTS_FRAME ,ENTRY_TXD_CTS_FRAME ,ENTRY_TXD_OFDM_RATE , +ENTRY_TXD_GENERATE_SEQ ,ENTRY_TXD_FIRST_FRAGMENT ,ENTRY_TXD_MORE_FRAG , ENTRY_TXD_REQ_TIMESTAMP,
drivers/net/wireless/rt2x00/rt2x00usb.c +32 -0
@@ -122,6 +122,38 @@ int rt2x00usb_vendor_request_buff(struct rt2x00_dev *rt2x00dev, }EXPORT_SYMBOL_GPL (rt2x00usb_vendor_request_buff); +int rt2x00usb_vendor_request_large_buff (struct rt2x00_dev *rt2x00dev, +const u8 request,const u8 requesttype, +const u16 offset,void *buffer, +const u16 buffer_length, +const int timeout) +{ +int status =0 ; +unsigned char *tb; +u16 off, len, bsize; + +mutex_lock (&rt2x00dev->usb_cache_mutex); + + tb = buffer; + off = offset; + len = buffer_length; +while (len && !status) { + bsize =min_t (u16,CSR_CACHE_SIZE , len); + status =rt2x00usb_vendor_req_buff_lock (rt2x00dev, request, + requesttype, off, tb, + bsize, timeout); + + tb += bsize; + len -= bsize; + off += bsize; + } + +mutex_unlock (&rt2x00dev->usb_cache_mutex); + +return status; +} +EXPORT_SYMBOL_GPL (rt2x00usb_vendor_request_large_buff); +/* * TX data handlers. */
drivers/net/wireless/rt2x00/rt2x00usb.h +20 -2
@@ -70,8 +70,7 @@/* * Cache size */ -#define CSR_CACHE_SIZE 8 -#define CSR_CACHE_SIZE_FIRMWARE 64 +#define CSR_CACHE_SIZE 64/* * USB request types.
@@ -172,6 +171,25 @@ int rt2x00usb_vendor_req_buff_lock(struct rt2x00_dev *rt2x00dev, const u16 buffer_length, const int timeout);/** +* rt2x00usb_vendor_request_large_buff - Send register command to device (buffered) +* @rt2x00dev: Pointer to &struct rt2x00_dev +* @request: USB vendor command (See &enum rt2x00usb_vendor_request) +* @requesttype: Request type &USB_VENDOR_REQUEST_* +* @offset: Register start offset to perform action on +* @buffer: Buffer where information will be read/written to by device +* @buffer_length: Size of &buffer +* @timeout: Operation timeout +* +* This function is used to transfer register data in blocks larger +* then CSR_CACHE_SIZE. Use for firmware upload, keys and beacons. +*/ +int rt2x00usb_vendor_request_large_buff (struct rt2x00_dev *rt2x00dev, +const u8 request,const u8 requesttype, +const u16 offset,void *buffer, +const u16 buffer_length, +const int timeout); + +/** * rt2x00usb_vendor_request_sw - Send single register command to device * @rt2x00dev: Pointer to &struct rt2x00_dev * @request: USB vendor command (See &enum rt2x00usb_vendor_request)
drivers/net/wireless/rt2x00/rt61pci.c +2 -2
@@ -1544,7 +1544,8 @@ static void rt61pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,rt2x00_set_field32 (&word,TXD_W1_CWMIN , txdesc->cw_min);rt2x00_set_field32 (&word,TXD_W1_CWMAX , txdesc->cw_max);rt2x00_set_field32 (&word,TXD_W1_IV_OFFSET ,IEEE80211_HEADER ); -rt2x00_set_field32 (&word,TXD_W1_HW_SEQUENCE ,1 ); +rt2x00_set_field32 (&word,TXD_W1_HW_SEQUENCE , +test_bit (ENTRY_TXD_GENERATE_SEQ , &txdesc->flags));rt2x00_set_field32 (&word,TXD_W1_BUFFER_COUNT ,1 );rt2x00_desc_write (txd,1 , word);
@@ -2278,7 +2279,6 @@ static void rt61pci_probe_hw_mode(struct rt2x00_dev *rt2x00dev)* Initialize all hw fields. */ rt2x00dev->hw->flags = -IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE |IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING |IEEE80211_HW_SIGNAL_DBM ; rt2x00dev->hw->extra_tx_headroom =0 ;
drivers/net/wireless/rt2x00/rt73usb.c +23 -33
99 lines not on this page · raw message
drivers/net/wireless/rtl8187.h +7 -4
@@ -47,11 +47,13 @@ struct rtl8187_rx_hdr {struct rtl8187b_rx_hdr {__le32 flags;__le64 mac_time; -u8 noise; -u8 signal; +u8 sq; +u8 rssi;u8 agc; -u8 reserved; -__le32 unused; +u8 flags2; +__le16 snr_long2end; +s8 pwdb_g12; +u8 fot; } __attribute__((packed));/* {rtl8187,rtl8187b}_tx_info is in skb */
@@ -100,6 +102,7 @@ struct rtl8187_priv {struct usb_device *udev;u32 rx_conf;u16 txpwr_base; +u16 seqno;u8 asic_rev;u8 is_rtl8187b;enum {
drivers/net/wireless/rtl8187_dev.c +63 -30
144 lines not on this page · raw message
drivers/net/wireless/zd1211rw/zd_mac.c +0 -1
@@ -935,7 +935,6 @@ struct ieee80211_hw *zd_mac_alloc_hw(struct usb_interface *intf) hw->wiphy->bands[IEEE80211_BAND_2GHZ ] = &mac->band; hw->flags =IEEE80211_HW_RX_INCLUDES_FCS | -IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE |IEEE80211_HW_SIGNAL_DB ; hw->max_signal =100 ;
include/linux/rfkill.h +5 -3
@@ -68,7 +68,8 @@ enum rfkill_state {* @user_claim_unsupported: Whether the hardware supports exclusive * RF-kill control by userspace. Set this before registering. * @user_claim: Set when the switch is controlled exlusively by userspace. -* @mutex: Guards switch state transitions +* @mutex: Guards switch state transitions. It serializes callbacks +* and also protects the state. * @data: Pointer to the RF button drivers private data which will be * passed along when toggling radio state. * @toggle_radio(): Mandatory handler to control state of the radio.
@@ -89,12 +90,13 @@ struct rfkill {const char *name;enum rfkill_type type; -enum rfkill_state state;bool user_claim_unsupported;bool user_claim; +/* the mutex serializes callbacks and also protects +* the state */ struct mutex mutex; - +enum rfkill_state state;void *data;int (*toggle_radio)(void *data,enum rfkill_state state);int (*get_state)(void *data,enum rfkill_state *state);
include/linux/skbuff.h +4 -1
@@ -316,7 +316,10 @@ struct sk_buff {#ifdef CONFIG_IPV6_NDISC_NODETYPE __u8 ndisc_nodetype:2;#endif -/* 14 bit hole */ +#if defined(CONFIG_MAC80211 ) || defined(CONFIG_MAC80211_MODULE ) + __u8 do_not_encrypt:1; +#endif +/* 0/13/14 bit hole */ #ifdef CONFIG_NET_DMA dma_cookie_t dma_cookie;
include/net/mac80211.h +0 -7
@@ -206,8 +206,6 @@ struct ieee80211_bss_conf {* These flags are used with the @flags member of &ieee80211_tx_info. * * @IEEE80211_TX_CTL_REQ_TX_STATUS: request TX status callback for this frame. -* @IEEE80211_TX_CTL_DO_NOT_ENCRYPT: send this frame without encryption; -* e.g., for EAPOL frame * @IEEE80211_TX_CTL_USE_RTS_CTS: use RTS-CTS before sending frame * @IEEE80211_TX_CTL_USE_CTS_PROTECT: use CTS protection for the frame (e.g., * for combined 802.11g / 802.11b networks)
@@ -220,7 +218,6 @@ struct ieee80211_bss_conf {* @IEEE80211_TX_CTL_SHORT_PREAMBLE: TBD * @IEEE80211_TX_CTL_LONG_RETRY_LIMIT: this frame should be send using the * through set_retry_limit configured long retry value -* @IEEE80211_TX_CTL_EAPOL_FRAME: internal to mac80211 * @IEEE80211_TX_CTL_SEND_AFTER_DTIM: send this frame after DTIM beacon * @IEEE80211_TX_CTL_AMPDU: this frame should be sent as part of an A-MPDU * @IEEE80211_TX_CTL_OFDM_HT: this frame can be sent in HT OFDM rates. number
@@ -253,7 +250,6 @@ struct ieee80211_bss_conf {*/ enum mac80211_tx_control_flags {IEEE80211_TX_CTL_REQ_TX_STATUS =BIT (0 ), -IEEE80211_TX_CTL_DO_NOT_ENCRYPT =BIT (1 ),IEEE80211_TX_CTL_USE_RTS_CTS =BIT (2 ),IEEE80211_TX_CTL_USE_CTS_PROTECT =BIT (3 ),IEEE80211_TX_CTL_NO_ACK =BIT (4 ),
@@ -263,7 +259,6 @@ enum mac80211_tx_control_flags {IEEE80211_TX_CTL_FIRST_FRAGMENT =BIT (8 ),IEEE80211_TX_CTL_SHORT_PREAMBLE =BIT (9 ),IEEE80211_TX_CTL_LONG_RETRY_LIMIT =BIT (10 ), -IEEE80211_TX_CTL_EAPOL_FRAME =BIT (11 ),IEEE80211_TX_CTL_SEND_AFTER_DTIM =BIT (12 ),IEEE80211_TX_CTL_AMPDU =BIT (13 ), IEEE80211_TX_CTL_OFDM_HT = BIT(14),
@@ -323,7 +318,6 @@ struct ieee80211_tx_info {struct ieee80211_vif *vif;struct ieee80211_key_conf *hw_key;unsigned long jiffies; -int ifindex;u16 aid;s8 rts_cts_rate_idx, alt_retry_rate_idx;u8 retry_limit;
@@ -746,7 +740,6 @@ enum ieee80211_tkip_key_type {* Measurement, Channel Switch, Quieting, TPC */ enum ieee80211_hw_flags { -IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE =1 <<0 ,IEEE80211_HW_RX_INCLUDES_FCS =1 <<1 ,IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING =1 <<2 ,IEEE80211_HW_2GHZ_SHORT_SLOT_INCAPABLE =1 <<3 ,
net/core/skbuff.c +3 -0
@@ -485,6 +485,9 @@ static struct sk_buff *__skb_clone(struct sk_buff *n, struct sk_buff *skb)C (head);C (data);C (truesize); +#if defined(CONFIG_MAC80211 ) || defined(CONFIG_MAC80211_MODULE ) +C (do_not_encrypt); +#endif atomic_set (&n->users,1 );atomic_inc (&(skb_shinfo (skb)->dataref));
net/mac80211/cfg.c +88 -15
255 lines not on this page · raw message
net/mac80211/main.c +3 -9
@@ -1233,18 +1233,12 @@ static void ieee80211_tasklet_handler(unsigned long data)/* Remove added headers (e.g., QoS control), encryption header/MIC, etc. to * make a prepared TX frame (one that has been given to hw) to look like brand * new IEEE 802.11 frame that is ready to go through TX processing again. -* Also, tx_packet_data in cb is restored from tx_control. */ +*/ static void ieee80211_remove_tx_extra (struct ieee80211_local *local,struct ieee80211_key *key,struct sk_buff *skb) {int hdrlen, iv_len, mic_len; -struct ieee80211_tx_info *info =IEEE80211_SKB_CB (skb); - - info->flags &=IEEE80211_TX_CTL_REQ_TX_STATUS | -IEEE80211_TX_CTL_DO_NOT_ENCRYPT | -IEEE80211_TX_CTL_REQUEUE | -IEEE80211_TX_CTL_EAPOL_FRAME ; hdrlen =ieee80211_get_hdrlen_from_skb (skb);
@@ -1731,8 +1725,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) result =ieee80211_wep_init (local);if (result <0 ) { -printk (KERN_DEBUG "%s: Failed to initialize wep\n" , -wiphy_name (local->hw.wiphy)); +printk (KERN_DEBUG "%s: Failed to initialize wep: %d\n" , +wiphy_name (local->hw.wiphy), result); goto fail_wep; }
net/mac80211/mlme.c +3 -6
@@ -606,7 +606,6 @@ void ieee80211_sta_tx(struct net_device *dev, struct sk_buff *skb, int encrypt) {struct ieee80211_sub_if_data *sdata; -struct ieee80211_tx_info *info; sdata =IEEE80211_DEV_TO_SUB_IF (dev); skb->dev = sdata->local->mdev;
@@ -614,11 +613,8 @@ void ieee80211_sta_tx(struct net_device *dev, struct sk_buff *skb,skb_set_network_header (skb,0 );skb_set_transport_header (skb,0 ); - info =IEEE80211_SKB_CB (skb); -memset (info,0 ,sizeof (struct ieee80211_tx_info )); - info->control.ifindex = sdata->dev->ifindex; -if (!encrypt) - info->flags |=IEEE80211_TX_CTL_DO_NOT_ENCRYPT ; + skb->iif = sdata->dev->ifindex; + skb->do_not_encrypt = !encrypt;dev_queue_xmit (skb); }
@@ -3303,6 +3299,7 @@ void ieee80211_start_mesh(struct net_device *dev) ifsta = &sdata->u.sta; ifsta->state =IEEE80211_MESH_UP ;ieee80211_sta_timer ((unsigned long )sdata); + ieee80211_if_config(sdata, IEEE80211_IFCC_BEACON); }#endif
net/mac80211/tx.c +25 -30
174 lines not on this page · raw message
net/mac80211/wep.c +2 -2
@@ -31,13 +31,13 @@ int ieee80211_wep_init(struct ieee80211_local *local) local->wep_tx_tfm =crypto_alloc_blkcipher ("ecb(arc4)" ,0 ,CRYPTO_ALG_ASYNC );if (IS_ERR (local->wep_tx_tfm)) -return -ENOMEM ; +return PTR_ERR (local->wep_tx_tfm); local->wep_rx_tfm =crypto_alloc_blkcipher ("ecb(arc4)" ,0 ,CRYPTO_ALG_ASYNC );if (IS_ERR (local->wep_rx_tfm)) {crypto_free_blkcipher (local->wep_tx_tfm); -return -ENOMEM ; +return PTR_ERR (local->wep_rx_tfm); }return 0 ;
net/mac80211/wme.c +3 -0
@@ -188,6 +188,9 @@ int ieee80211_ht_agg_queue_add(struct ieee80211_local *local, {int i; +/* XXX: currently broken due to cb/requeue use */ +return -EPERM ; +/* prepare the filter and save it for the SW queue * matching the received HW queue */
net/rfkill/rfkill.c +39 -23
167 lines not on this page · raw message
net/wireless/nl80211.c +153 -122
444 lines not on this page · raw message
Signature · 2 lines
John W. Linville [email protected]
David Miller
maintainerFrom: "John W. Linville" <[email protected]>
Date: Tue, 29 Jul 2008 17:34:47 -0400
Quoted 5 lines
A rather large set of patches to fix some of the problems that have been festering in Linus's tree for the last week or so...I apologize for my absence while I dallied in sunny Ottawa...
Please let me know if there are problems!
Pulled, thanks John.
I'll push to kernel.org after I do some build testing.
--
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