Skip to contentSkip to conversation

pull request: wireless 2013-04-08

PATCH John W. Linville 3 participants 3 messages Apr 8, 2013 – Apr 9, 2013

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

Dave,

Please consider this set of fixes for the 3.9 stream...

For the cfg80211 fix, Johannes says:

"I have another straggler for 3.9, adding locking forgotten in a previous fix."

On top of that:

Bing Zhao provides an mwifiex fix to properly order a scan completion.

Franky Lin gives us a brcmfmac fix to fail at the firmware loading stage if the nvram cannot be downloaded.

Gabor Juhos brings what at first looks like a rather big rt2x00 patch. I think it is OK because it is really just reorganizing some code within the rt2x00 driver in order to fix a build failure.

Hante Meuleman offers a trio of brcmfmac fixes related to running in AP mode.

Robert Shade sends an ath9k fix to reenable interrupts even if a channel change fails.

Tim Gardner gives us an rt2x00 fix to cut-down on some log SPAM.

Please let me know if there are problems!

Thanks,

John

---

The following changes since commit b50b72de2f2feed4adfbd8e18610a393b5a04cc7:

net: mvneta: enable features before registering the driver (2013-04-08 12:16:38 -0400)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git for-davem

for you to fetch changes up to 64e5751918b4d03015b185750a46ecd050e1ce77:

Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem (2013-04-08 14:26:57 -0400)

----------------------------------------------------------------

Artem Savkov (1):

      cfg80211: sched_scan_mtx lock in cfg80211_conn_work()

Bing Zhao (1):
mwifiex: complete last internal scan

Franky Lin (1):
brcmfmac: do not proceed if fail to download nvram to dongle

Gabor Juhos (1):
rt2x00: rt2x00pci: fix build error on Ralink RT3x5x SoCs

Hante Meuleman (3):
brcmfmac: fix tkip mic tx/rx ap swap bug.
brcmfmac: fix stopping AP.
brcmfmac: fix returning cipher_suite for get_key operation.

John W. Linville (2):
Merge branch 'for-john' of git://git.kernel.org/.../jberg/mac80211
Merge branch 'master' of git://git.kernel.org/.../linville/wireless into for-davem

Robert Shade (1):
ath9k: Re-enable interrupts after a channel change failure

Tim Gardner (1):
rt2x00: rt2x00pci_regbusy_read() - only print register access failure once

 drivers/net/wireless/ath/ath9k/main.c              |   4 +
 drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c |   6 +-
 .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c  |  46 +++--
 drivers/net/wireless/mwifiex/scan.c                |  11 +-
 drivers/net/wireless/rt2x00/Kconfig                |   7 +
 drivers/net/wireless/rt2x00/Makefile               |   1 +
 drivers/net/wireless/rt2x00/rt2400pci.c            |   1 +
 drivers/net/wireless/rt2x00/rt2500pci.c            |   1 +
 drivers/net/wireless/rt2x00/rt2800pci.c            |   1 +
 drivers/net/wireless/rt2x00/rt2x00mmio.c           | 216 +++++++++++++++++++++
 drivers/net/wireless/rt2x00/rt2x00mmio.h           | 119 ++++++++++++
 drivers/net/wireless/rt2x00/rt2x00pci.c            | 176 -----------------
 drivers/net/wireless/rt2x00/rt2x00pci.h            |  88 ---------
 drivers/net/wireless/rt2x00/rt61pci.c              |   1 +
 net/wireless/sme.c                                 |   2 +
 15 files changed, 390 insertions(+), 290 deletions(-)
 create mode 100644 drivers/net/wireless/rt2x00/rt2x00mmio.c
 create mode 100644 drivers/net/wireless/rt2x00/rt2x00mmio.h
drivers/net/wireless/ath/ath9k/main.c +4 -0
index 6e66f9c..988372d 100644
@@ -280,6 +280,10 @@ static int ath_reset_internal(struct ath_softc *sc, struct ath9k_channel *hchan)
 	if (r) {
 		ath_err(common,
 			"Unable to reset channel, reset status %d\n", r);
+
+		ath9k_hw_enable_interrupts(ah);
+		ath9k_queue_reset(sc, RESET_TYPE_BB_HANG);
+
 		goto out;
 	}
 
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c +3 -3
index 4469321..35fc68b 100644
@@ -3317,15 +3317,15 @@ static int _brcmf_sdbrcm_download_firmware(struct brcmf_sdio *bus)
 		goto err;
 	}
 
-	/* External image takes precedence if specified */
 	if (brcmf_sdbrcm_download_code_file(bus)) {
 		brcmf_err("dongle image file download failed\n");
 		goto err;
 	}
 
-	/* External nvram takes precedence if specified */
-	if (brcmf_sdbrcm_download_nvram(bus))
+	if (brcmf_sdbrcm_download_nvram(bus)) {
 		brcmf_err("dongle nvram file download failed\n");
+		goto err;
+	}
 
 	/* Take arm out of reset */
 	if (brcmf_sdbrcm_download_state(bus, false)) {
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +25 -21

103 lines not on this page · raw message

drivers/net/wireless/mwifiex/scan.c +9 -2
index d215b4d..e7f6dea 100644
@@ -1393,8 +1393,10 @@ int mwifiex_scan_networks(struct mwifiex_private *priv,
 			queue_work(adapter->workqueue, &adapter->main_work);
 
 			/* Perform internal scan synchronously */
-			if (!priv->scan_request)
+			if (!priv->scan_request) {
+				dev_dbg(adapter->dev, "wait internal scan\n");
 				mwifiex_wait_queue_complete(adapter, cmd_node);
+			}
 		} else {
 			spin_unlock_irqrestore(&adapter->scan_pending_q_lock,
 					       flags);
@@ -1793,7 +1795,12 @@ check_next_scan:
 		/* Need to indicate IOCTL complete */
 		if (adapter->curr_cmd->wait_q_enabled) {
 			adapter->cmd_wait_q.status = 0;
-			mwifiex_complete_cmd(adapter, adapter->curr_cmd);
+			if (!priv->scan_request) {
+				dev_dbg(adapter->dev,
+					"complete internal scan\n");
+				mwifiex_complete_cmd(adapter,
+						     adapter->curr_cmd);
+			}
 		}
 		if (priv->report_scan_result)
 			priv->report_scan_result = false;
drivers/net/wireless/rt2x00/Kconfig +7 -0
index 2bf4efa..76cd47e 100644
@@ -20,6 +20,7 @@ if RT2X00
 config RT2400PCI
 	tristate "Ralink rt2400 (PCI/PCMCIA) support"
 	depends on PCI
+	select RT2X00_LIB_MMIO
 	select RT2X00_LIB_PCI
 	select EEPROM_93CX6
 	---help---
@@ -31,6 +32,7 @@ config RT2400PCI
 config RT2500PCI
 	tristate "Ralink rt2500 (PCI/PCMCIA) support"
 	depends on PCI
+	select RT2X00_LIB_MMIO
 	select RT2X00_LIB_PCI
 	select EEPROM_93CX6
 	---help---
@@ -43,6 +45,7 @@ config RT61PCI
 	tristate "Ralink rt2501/rt61 (PCI/PCMCIA) support"
 	depends on PCI
 	select RT2X00_LIB_PCI
+	select RT2X00_LIB_MMIO
 	select RT2X00_LIB_FIRMWARE
 	select RT2X00_LIB_CRYPTO
 	select CRC_ITU_T
@@ -57,6 +60,7 @@ config RT2800PCI
 	tristate "Ralink rt27xx/rt28xx/rt30xx (PCI/PCIe/PCMCIA) support"
 	depends on PCI || SOC_RT288X || SOC_RT305X
 	select RT2800_LIB
+	select RT2X00_LIB_MMIO
 	select RT2X00_LIB_PCI if PCI
 	select RT2X00_LIB_SOC if SOC_RT288X || SOC_RT305X
 	select RT2X00_LIB_FIRMWARE
@@ -185,6 +189,9 @@ endif
 config RT2800_LIB
 	tristate
 
+config RT2X00_LIB_MMIO
+	tristate
+
 config RT2X00_LIB_PCI
 	tristate
 	select RT2X00_LIB
drivers/net/wireless/rt2x00/Makefile +1 -0
index 349d5b8..f069d8b 100644
@@ -9,6 +9,7 @@ rt2x00lib-$(CONFIG_RT2X00_LIB_FIRMWARE)	+= rt2x00firmware.o
 rt2x00lib-$(CONFIG_RT2X00_LIB_LEDS)	+= rt2x00leds.o
 
 obj-$(CONFIG_RT2X00_LIB)		+= rt2x00lib.o
+obj-$(CONFIG_RT2X00_LIB_MMIO)		+= rt2x00mmio.o
 obj-$(CONFIG_RT2X00_LIB_PCI)		+= rt2x00pci.o
 obj-$(CONFIG_RT2X00_LIB_SOC)		+= rt2x00soc.o
 obj-$(CONFIG_RT2X00_LIB_USB)		+= rt2x00usb.o
drivers/net/wireless/rt2x00/rt2400pci.c +1 -0
index 221beaa..dcfb54e 100644
@@ -34,6 +34,7 @@
 #include <linux/slab.h>
 
 #include "rt2x00.h"
+#include "rt2x00mmio.h"
 #include "rt2x00pci.h"
 #include "rt2400pci.h"
 
drivers/net/wireless/rt2x00/rt2500pci.c +1 -0
index 39edc59..e1d2dc9 100644
@@ -34,6 +34,7 @@
 #include <linux/slab.h>
 
 #include "rt2x00.h"
+#include "rt2x00mmio.h"
 #include "rt2x00pci.h"
 #include "rt2500pci.h"
 
drivers/net/wireless/rt2x00/rt2800pci.c +1 -0
index ded73da..ba5a056 100644
@@ -41,6 +41,7 @@
 #include <linux/eeprom_93cx6.h>
 
 #include "rt2x00.h"
+#include "rt2x00mmio.h"
 #include "rt2x00pci.h"
 #include "rt2x00soc.h"
 #include "rt2800lib.h"
drivers/net/wireless/rt2x00/rt2x00mmio.c new file +216 -0

216 lines not on this page · raw message

drivers/net/wireless/rt2x00/rt2x00mmio.h new file +119 -0

119 lines not on this page · raw message

drivers/net/wireless/rt2x00/rt2x00pci.c +0 -176

182 lines not on this page · raw message

drivers/net/wireless/rt2x00/rt2x00pci.h +0 -88

94 lines not on this page · raw message

drivers/net/wireless/rt2x00/rt61pci.c +1 -0
index f95792c..9e3c8ff 100644
@@ -35,6 +35,7 @@
 #include <linux/eeprom_93cx6.h>
 
 #include "rt2x00.h"
+#include "rt2x00mmio.h"
 #include "rt2x00pci.h"
 #include "rt61pci.h"
 
net/wireless/sme.c +2 -0
index 09d994d..482c70e 100644
@@ -224,6 +224,7 @@ void cfg80211_conn_work(struct work_struct *work)
 	rtnl_lock();
 	cfg80211_lock_rdev(rdev);
 	mutex_lock(&rdev->devlist_mtx);
+	mutex_lock(&rdev->sched_scan_mtx);
 
 	list_for_each_entry(wdev, &rdev->wdev_list, list) {
 		wdev_lock(wdev);
@@ -248,6 +249,7 @@ void cfg80211_conn_work(struct work_struct *work)
 		wdev_unlock(wdev);
 	}
 
+	mutex_unlock(&rdev->sched_scan_mtx);
 	mutex_unlock(&rdev->devlist_mtx);
 	cfg80211_unlock_rdev(rdev);
 	rtnl_unlock();
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: Mon, 8 Apr 2013 15:21:02 -0400

Quoted 1 line

Please consider this set of fixes for the 3.9 stream...

...

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git for-davem

Pulled, thanks John.

#2 lore raw
In reply to John W. Linville

2013/4/8 John W. Linville <[email protected]>:

Quoted 2 lines

Please consider this set of fixes for the 3.9 stream...

(...)

Quoted 2 lines

Please let me know if there are problems!

John, could you take a look at what has happened to the [PATCH V2] ssb: implement spurious tone avoidance
?
Message-Id: <[email protected]>

This patch missed last 2 fix merges (3.9) for some reason.

Signature · 1 line
Rafał