Skip to contentSkip to conversation

pull request: wireless-2.6 2009-10-01

PATCH John W. Linville 2 participants 2 messages Oct 1, 2009

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Dave,

A small collection of fixes for 2.6.32...

One is a brown paper bag fix for an uninitialized variable, another is a USB ID. There is a beaconing fix for the mac80211_hwsim "fake" driver, and a bug fix for AP mode related to buffering frames for stations in power save mode.

The b43 fix looks a bit long, but it is more-or-less the same simple fix applied in multiple places. It addresses a bug where "the last bytes of data sent/received to/from PIO FIFOs on SDIO-based cards get 'swizzled' when its length is not multiple of 4 bytes."

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 eb1cf0f8f7a9e5a6d573d5bd72c015686a042db0:
David S. Miller (1):
Merge branch 'master' of ssh://master.kernel.org/.../linville/wireless-2.6

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git master

Christian Lamparter (1):
ar9170: fix bug in iq-auto calibration value calculation

Igor Perminov (1):
mac80211: Fix [re]association power saving issue on AP side

Jouni Malinen (1):
mac80211_hwsim: Fix initial beacon timer configuration

Michael Buesch (1):
b43: Always use block-I/O for the PIO data registers

Michal Szalata (1):
rt2x00: Thrustmaster FunAccess WIFI USB and rt73usb

 drivers/net/wireless/ath/ar9170/phy.c |    6 +--
 drivers/net/wireless/b43/pio.c        |   60 +++++++++++++++++++++------------
 drivers/net/wireless/mac80211_hwsim.c |    3 ++
 drivers/net/wireless/rt2x00/rt73usb.c |    1 +
 net/mac80211/tx.c                     |    5 ++-
 5 files changed, 48 insertions(+), 27 deletions(-)
drivers/net/wireless/ath/ar9170/phy.c +2 -4
index b3e5cf3..dbd488d 100644
@@ -1141,7 +1141,8 @@ static int ar9170_set_freq_cal_data(struct ar9170 *ar,
 	u8 vpds[2][AR5416_PD_GAIN_ICEPTS];
 	u8 pwrs[2][AR5416_PD_GAIN_ICEPTS];
 	int chain, idx, i;
-	u8 f;
+	u32 phy_data = 0;
+	u8 f, tmp;
 
 	switch (channel->band) {
 	case IEEE80211_BAND_2GHZ:
@@ -1208,9 +1209,6 @@ static int ar9170_set_freq_cal_data(struct ar9170 *ar,
 		}
 
 		for (i = 0; i < 76; i++) {
-			u32 phy_data;
-			u8 tmp;
-
 			if (i < 25) {
 				tmp = ar9170_interpolate_val(i, &pwrs[0][0],
 							     &vpds[0][0]);
drivers/net/wireless/b43/pio.c +38 -22

106 lines not on this page · raw message

drivers/net/wireless/mac80211_hwsim.c +3 -0
index 896f532..38cfd79 100644
@@ -631,6 +631,9 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw,
 		data->beacon_int = 1024 * info->beacon_int / 1000 * HZ / 1000;
 		if (WARN_ON(!data->beacon_int))
 			data->beacon_int = 1;
+		if (data->started)
+			mod_timer(&data->beacon_timer,
+				  jiffies + data->beacon_int);
 	}
 
 	if (changed & BSS_CHANGED_ERP_CTS_PROT) {
drivers/net/wireless/rt2x00/rt73usb.c +1 -0
index 1cbd9b4..b8f5ee3 100644
@@ -2381,6 +2381,7 @@ static struct usb_device_id rt73usb_device_table[] = {
 	/* Huawei-3Com */
 	{ USB_DEVICE(0x1472, 0x0009), USB_DEVICE_DATA(&rt73usb_ops) },
 	/* Hercules */
+	{ USB_DEVICE(0x06f8, 0xe002), USB_DEVICE_DATA(&rt73usb_ops) },
 	{ USB_DEVICE(0x06f8, 0xe010), USB_DEVICE_DATA(&rt73usb_ops) },
 	{ USB_DEVICE(0x06f8, 0xe020), USB_DEVICE_DATA(&rt73usb_ops) },
 	/* Linksys */
net/mac80211/tx.c +4 -1
index 5143d20..fd40282 100644
@@ -367,7 +367,10 @@ ieee80211_tx_h_unicast_ps_buf(struct ieee80211_tx_data *tx)
 	struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
 	u32 staflags;
 
-	if (unlikely(!sta || ieee80211_is_probe_resp(hdr->frame_control)))
+	if (unlikely(!sta || ieee80211_is_probe_resp(hdr->frame_control)
+			|| ieee80211_is_auth(hdr->frame_control)
+			|| ieee80211_is_assoc_resp(hdr->frame_control)
+			|| ieee80211_is_reassoc_resp(hdr->frame_control)))
 		return TX_CONTINUE;
 
 	staflags = get_sta_flags(sta);
Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.
maintainer
#1 lore raw

From: "John W. Linville" <[email protected]>
Date: Thu, 1 Oct 2009 14:24:51 -0400

Quoted 11 lines

One is a brown paper bag fix for an uninitialized variable, another is a USB ID. There is a beaconing fix for the mac80211_hwsim "fake" driver, and a bug fix for AP mode related to buffering frames for stations in power save mode.

The b43 fix looks a bit long, but it is more-or-less the same simple fix applied in multiple places. It addresses a bug where "the last bytes of data sent/received to/from PIO FIFOs on SDIO-based cards get 'swizzled' when its length is not multiple of 4 bytes."

Please let me know if there are problems!

Pulled, thanks a lot John.

I'll try to make sure the netif_rx_ni() et al. discussion keeps making forward progress so that will get fixed too :-)