Skip to contentSkip to conversation

pull request: wireless-2.6 2011-06-03

PATCH John W. Linville 3 participants 4 messages Jun 3, 2011 – Jun 4, 2011 1 message not in the archive

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

Dave,

Here is a batch of fixes intended for 3.0 -- I guess I'll need to rename my tree eventually... :-)

Included are a libertas fix to ensure proper sequence number assignment on transmitted frames, an ath9k fix that propogates an earlier fix to a few more places, a fix for a cfg80211 regression caused by some mesh code changes, a locking fix for the bluetooth l2cap code, a zd1211rw regression fix, a collection of small fixes for wl12xx, an iwl4965 fix for a bad temperature check, an a device ID-related fix for iwlagn.

Please let me know if there are problems!

Thanks,

John

---

The following changes since commit 9a2e0fb0893ddf595d0a372e681f5b98017c6d90:

tg3: Fix tg3_skb_error_unmap() (2011-06-03 00:01:30 -0700)

are available in the git repository at:
ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git for-davem

Daniel Drake (1):
libertas: Set command sequence number later to ensure consistency

Daniel Halperin (1):
ath9k: fix two more bugs in tx power

Eliad Peller (1):
cfg80211: don't drop p2p probe responses

Johannes Berg (1):
bluetooth l2cap: fix locking in l2cap_global_chan_by_psm

John W. Linville (1):
Merge branch 'master' of git://git.kernel.org/.../linville/wireless-2.6 into for-davem

Jussi Kivilinna (1):
zd1211rw: fix to work on OHCI

Luciano Coelho (4):
wl12xx: fix passive and radar channel generation for scheduled scan
wl12xx: fix DFS channels handling in scheduled scan
wl12xx: add separate config value for DFS dwell time on sched scan
wl12xx: fix oops in sched_scan when forcing a passive scan

Stanislaw Gruszka (1):
iwl4965: correctly validate temperature value

Wey-Yi Guy (1):
iwlagn: fix incorrect PCI subsystem id for 6150 devices

 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c |   10 ++++-
 drivers/net/wireless/ath/ath9k/eeprom_9287.c   |   10 ++++-
 drivers/net/wireless/iwlegacy/iwl-4965.c       |    2 +-
 drivers/net/wireless/iwlwifi/iwl-6000.c        |   28 ++++++++----
 drivers/net/wireless/iwlwifi/iwl-agn.c         |    6 +-
 drivers/net/wireless/iwlwifi/iwl-agn.h         |    1 +
 drivers/net/wireless/libertas/cmd.c            |    6 +-
 drivers/net/wireless/wl12xx/conf.h             |    3 +
 drivers/net/wireless/wl12xx/main.c             |    1 +
 drivers/net/wireless/wl12xx/scan.c             |   49 +++++++++++++++-------
 drivers/net/wireless/wl12xx/scan.h             |    3 +
 drivers/net/wireless/zd1211rw/zd_usb.c         |   53 +++++++++++++++++++-----
 include/linux/ieee80211.h                      |    8 +++-
 net/bluetooth/l2cap_core.c                     |    2 +-
 net/wireless/scan.c                            |   43 +++++++++++--------
 15 files changed, 155 insertions(+), 70 deletions(-)
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +8 -2
index 0ca7635..ff8150e 100644
@@ -4645,10 +4645,16 @@ static void ar9003_hw_set_power_per_rate_table(struct ath_hw *ah,
 	case 1:
 		break;
 	case 2:
-		scaledPower -= REDUCE_SCALED_POWER_BY_TWO_CHAIN;
+		if (scaledPower > REDUCE_SCALED_POWER_BY_TWO_CHAIN)
+			scaledPower -= REDUCE_SCALED_POWER_BY_TWO_CHAIN;
+		else
+			scaledPower = 0;
 		break;
 	case 3:
-		scaledPower -= REDUCE_SCALED_POWER_BY_THREE_CHAIN;
+		if (scaledPower > REDUCE_SCALED_POWER_BY_THREE_CHAIN)
+			scaledPower -= REDUCE_SCALED_POWER_BY_THREE_CHAIN;
+		else
+			scaledPower = 0;
 		break;
 	}
 
drivers/net/wireless/ath/ath9k/eeprom_9287.c +8 -2
index 7856f0d..343fc9f 100644
@@ -524,10 +524,16 @@ static void ath9k_hw_set_ar9287_power_per_rate_table(struct ath_hw *ah,
 	case 1:
 		break;
 	case 2:
-		scaledPower -= REDUCE_SCALED_POWER_BY_TWO_CHAIN;
+		if (scaledPower > REDUCE_SCALED_POWER_BY_TWO_CHAIN)
+			scaledPower -= REDUCE_SCALED_POWER_BY_TWO_CHAIN;
+		else
+			scaledPower = 0;
 		break;
 	case 3:
-		scaledPower -= REDUCE_SCALED_POWER_BY_THREE_CHAIN;
+		if (scaledPower > REDUCE_SCALED_POWER_BY_THREE_CHAIN)
+			scaledPower -= REDUCE_SCALED_POWER_BY_THREE_CHAIN;
+		else
+			scaledPower = 0;
 		break;
 	}
 	scaledPower = max((u16)0, scaledPower);
drivers/net/wireless/iwlegacy/iwl-4965.c +1 -1
index f5433c7..f9db25b 100644
@@ -1543,7 +1543,7 @@ static void iwl4965_temperature_calib(struct iwl_priv *priv)
 	s32 temp;
 
 	temp = iwl4965_hw_get_temperature(priv);
-	if (temp < 0)
+	if (IWL_TX_POWER_TEMPERATURE_OUT_OF_RANGE(temp))
 		return;
 
 	if (priv->temperature != temp) {
drivers/net/wireless/iwlwifi/iwl-6000.c +18 -10
index f8c710d..fda6fe0 100644
@@ -603,19 +603,27 @@ struct iwl_cfg iwl6050_2abg_cfg = {
 	IWL_DEVICE_6050,
 };
 
+#define IWL_DEVICE_6150						\
+	.fw_name_pre = IWL6050_FW_PRE,				\
+	.ucode_api_max = IWL6050_UCODE_API_MAX,			\
+	.ucode_api_min = IWL6050_UCODE_API_MIN,			\
+	.ops = &iwl6150_ops,					\
+	.eeprom_ver = EEPROM_6150_EEPROM_VERSION,		\
+	.eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION,	\
+	.base_params = &iwl6050_base_params,			\
+	.need_dc_calib = true,					\
+	.led_mode = IWL_LED_BLINK,				\
+	.internal_wimax_coex = true
+
 struct iwl_cfg iwl6150_bgn_cfg = {
 	.name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
-	.fw_name_pre = IWL6050_FW_PRE,
-	.ucode_api_max = IWL6050_UCODE_API_MAX,
-	.ucode_api_min = IWL6050_UCODE_API_MIN,
-	.eeprom_ver = EEPROM_6150_EEPROM_VERSION,
-	.eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION,
-	.ops = &iwl6150_ops,
-	.base_params = &iwl6050_base_params,
+	IWL_DEVICE_6150,
 	.ht_params = &iwl6000_ht_params,
-	.need_dc_calib = true,
-	.led_mode = IWL_LED_RF_STATE,
-	.internal_wimax_coex = true,
+};
+
+struct iwl_cfg iwl6150_bg_cfg = {
+	.name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
+	IWL_DEVICE_6150,
 };
 
 struct iwl_cfg iwl6000_3agn_cfg = {
drivers/net/wireless/iwlwifi/iwl-agn.c +3 -3
index 11c6c11..a662adc 100644
@@ -3831,11 +3831,11 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_card_ids) = {
 
 /* 6150 WiFi/WiMax Series */
 	{IWL_PCI_DEVICE(0x0885, 0x1305, iwl6150_bgn_cfg)},
-	{IWL_PCI_DEVICE(0x0885, 0x1306, iwl6150_bgn_cfg)},
+	{IWL_PCI_DEVICE(0x0885, 0x1307, iwl6150_bg_cfg)},
 	{IWL_PCI_DEVICE(0x0885, 0x1325, iwl6150_bgn_cfg)},
-	{IWL_PCI_DEVICE(0x0885, 0x1326, iwl6150_bgn_cfg)},
+	{IWL_PCI_DEVICE(0x0885, 0x1327, iwl6150_bg_cfg)},
 	{IWL_PCI_DEVICE(0x0886, 0x1315, iwl6150_bgn_cfg)},
-	{IWL_PCI_DEVICE(0x0886, 0x1316, iwl6150_bgn_cfg)},
+	{IWL_PCI_DEVICE(0x0886, 0x1317, iwl6150_bg_cfg)},
 
 /* 1000 Series WiFi */
 	{IWL_PCI_DEVICE(0x0083, 0x1205, iwl1000_bgn_cfg)},
drivers/net/wireless/iwlwifi/iwl-agn.h +1 -0
index 2495fe7..d171684 100644
@@ -89,6 +89,7 @@ extern struct iwl_cfg iwl6000_3agn_cfg;
 extern struct iwl_cfg iwl6050_2agn_cfg;
 extern struct iwl_cfg iwl6050_2abg_cfg;
 extern struct iwl_cfg iwl6150_bgn_cfg;
+extern struct iwl_cfg iwl6150_bg_cfg;
 extern struct iwl_cfg iwl1000_bgn_cfg;
 extern struct iwl_cfg iwl1000_bg_cfg;
 extern struct iwl_cfg iwl100_bgn_cfg;
drivers/net/wireless/libertas/cmd.c +3 -3
index 84566db..71c8f3f 100644
@@ -994,6 +994,8 @@ static void lbs_submit_command(struct lbs_private *priv,
 	cmd = cmdnode->cmdbuf;
 
 	spin_lock_irqsave(&priv->driver_lock, flags);
+	priv->seqnum++;
+	cmd->seqnum = cpu_to_le16(priv->seqnum);
 	priv->cur_cmd = cmdnode;
 	spin_unlock_irqrestore(&priv->driver_lock, flags);
 
@@ -1621,11 +1623,9 @@ struct cmd_ctrl_node *__lbs_cmd_async(struct lbs_private *priv,
 	/* Copy the incoming command to the buffer */
 	memcpy(cmdnode->cmdbuf, in_cmd, in_cmd_size);
 
-	/* Set sequence number, clean result, move to buffer */
-	priv->seqnum++;
+	/* Set command, clean result, move to buffer */
 	cmdnode->cmdbuf->command = cpu_to_le16(command);
 	cmdnode->cmdbuf->size    = cpu_to_le16(in_cmd_size);
-	cmdnode->cmdbuf->seqnum  = cpu_to_le16(priv->seqnum);
 	cmdnode->cmdbuf->result  = 0;
 
 	lbs_deb_host("PREP_CMD: command 0x%04x\n", command);
drivers/net/wireless/wl12xx/conf.h +3 -0
index 1ab6c86..c83fefb 100644
@@ -1157,6 +1157,9 @@ struct conf_sched_scan_settings {
 	/* time to wait on the channel for passive scans (in TUs) */
 	u32 dwell_time_passive;
 
+	/* time to wait on the channel for DFS scans (in TUs) */
+	u32 dwell_time_dfs;
+
 	/* number of probe requests to send on each channel in active scans */
 	u8 num_probe_reqs;
 
drivers/net/wireless/wl12xx/main.c +1 -0
index bc00e52..e6497dc 100644
@@ -311,6 +311,7 @@ static struct conf_drv_settings default_conf = {
 		.min_dwell_time_active = 8,
 		.max_dwell_time_active = 30,
 		.dwell_time_passive    = 100,
+		.dwell_time_dfs        = 150,
 		.num_probe_reqs        = 2,
 		.rssi_threshold        = -90,
 		.snr_threshold         = 0,
drivers/net/wireless/wl12xx/scan.c +33 -16

119 lines not on this page · raw message

drivers/net/wireless/wl12xx/scan.h +3 -0
index c833195..a0b6c5d 100644
@@ -137,6 +137,9 @@ enum {
 	SCAN_BSS_TYPE_ANY,
 };
 
+#define SCAN_CHANNEL_FLAGS_DFS		BIT(0)
+#define SCAN_CHANNEL_FLAGS_DFS_ENABLED	BIT(1)
+
 struct conn_scan_ch_params {
 	__le16 min_duration;
 	__le16 max_duration;
drivers/net/wireless/zd1211rw/zd_usb.c +42 -11

87 lines not on this page · raw message

include/linux/ieee80211.h +6 -2
index b2eee58..bf56b6f 100644
@@ -1003,8 +1003,12 @@ struct ieee80211_ht_info {
 #define WLAN_CAPABILITY_ESS		(1<<0)
 #define WLAN_CAPABILITY_IBSS		(1<<1)
 
-/* A mesh STA sets the ESS and IBSS capability bits to zero */
-#define WLAN_CAPABILITY_IS_MBSS(cap)	\
+/*
+ * A mesh STA sets the ESS and IBSS capability bits to zero.
+ * however, this holds true for p2p probe responses (in the p2p_find
+ * phase) as well.
+ */
+#define WLAN_CAPABILITY_IS_STA_BSS(cap)	\
 	(!((cap) & (WLAN_CAPABILITY_ESS | WLAN_CAPABILITY_IBSS)))
 
 #define WLAN_CAPABILITY_CF_POLLABLE	(1<<2)
net/bluetooth/l2cap_core.c +1 -1
index a86f9ba..e64a1c2 100644
@@ -906,7 +906,7 @@ static struct l2cap_chan *l2cap_global_chan_by_psm(int state, __le16 psm, bdaddr
 		if (c->psm == psm) {
 			/* Exact match. */
 			if (!bacmp(&bt_sk(sk)->src, src)) {
-				read_unlock_bh(&chan_list_lock);
+				read_unlock(&chan_list_lock);
 				return c;
 			}
 
net/wireless/scan.c +24 -19

73 lines not on this page · raw message

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: Fri, 3 Jun 2011 15:52:54 -0400

Quoted 11 lines

Here is a batch of fixes intended for 3.0 -- I guess I'll need to rename my tree eventually... :-)

Included are a libertas fix to ensure proper sequence number assignment on transmitted frames, an ath9k fix that propogates an earlier fix to a few more places, a fix for a cfg80211 regression caused by some mesh code changes, a locking fix for the bluetooth l2cap code, a zd1211rw regression fix, a collection of small fixes for wl12xx, an iwl4965 fix for a bad temperature check, an a device ID-related fix for iwlagn.

Please let me know if there are problems!

Pulled, thanks John.

#3 lore raw
In reply to a message not in the archive
Quoted 14 lines · Rafał Miłecki
Quoted 13 lines · John W. Linville

Dave,

Here is a batch of fixes intended for 3.0 -- I guess I'll need to rename my tree eventually... :-)

Included are a libertas fix to ensure proper sequence number assignment on transmitted frames, an ath9k fix that propogates an earlier fix to a few more places, a fix for a cfg80211 regression caused by some mesh code changes, a locking fix for the bluetooth l2cap code, a zd1211rw regression fix, a collection of small fixes for wl12xx, an iwl4965 fix for a bad temperature check, an a device ID-related fix for iwlagn.

Quoted 4 lines
Quoted 1 line

Please let me know if there are problems!

John, you didn't.take my fix for regression in ssb. I really want this for 3.0.quickly, as few ppl already had problems with machine locking on boot.

Yours isn't the only fix, and I had quite a few queued already. Patience.

Signature · 2 lines
John W. Linville                Someday the world will need a hero, and you
[email protected]                  might be all we have.  Be ready.
#4 lore raw

W dniu 4 czerwca 2011 15:04 użytkownik John W. Linville

Quoted 15 lines · <[email protected]> napisał:
Quoted 14 lines · Rafał Miłecki
Quoted 13 lines · John W. Linville

Dave,

Here is a batch of fixes intended for 3.0 -- I guess I'll need to rename my tree eventually... :-)

Included are a libertas fix to ensure proper sequence number assignment on transmitted frames, an ath9k fix that propogates an earlier fix to a few more places,  a fix for a cfg80211 regression caused by some mesh code changes, a locking fix for the bluetooth l2cap code, a zd1211rw regression fix, a collection of small fixes for wl12xx, an iwl4965 fix for a bad temperature check, an a device ID-related fix for iwlagn.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Please let me know if there are problems!

John, you didn't.take my fix for regression in ssb. I really want this for 3.0.quickly, as few ppl already had problems with machine locking on boot.

Yours isn't the only fix, and I had quite a few queued already.  Patience.

OK, I was just afraid you missed this one :) Sorry if I meant rude.

Signature · 5 lines
Rafał
--
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