Skip to contentSkip to conversation

pull request: wireless-2.6 2008-08-26

PATCH John W. Linville 9 participants 31 messages Aug 27, 2008 – Aug 28, 2008

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

Dave,

Here is the latest round of fixes intended for 2.6.27. I think the non-iwlwifi ones are pretty solid. As for the iwlwifi ones, the Intel guys assure me that these are important changes.

You will notice that (despite my exhortations) no less than two of the iwlwifi patches declare themselves as cleanups. I have included them anyway because the later fixes depend on them and they seemed harmless enough. Plus, they were posted (or at least written) before the recent fireworks about what we should be merging after -rc1...

I have reiterated the "fixes only" rule to Zhu Yi and asked him to pass that to the rest of his team. I'm quite confident that he will comply and in any event I intend this to be the last post -rc1 pull request with cleanups from Intel (or anyone else) in it.

I would appreciate it if we could merge this request as-is. If you are not comfortable with that, then I would ask you to pull from the 'no-iwlwifi' branch instead. In that case, at least we can get the less questionable patches pushed upstream ASAP.

Thanks!

John

---

Individual patches are available here:

http://www.kernel.org/pub/linux/kernel/people/linville/wireless-2.6/

---

The following changes since commit c2d42545774c4bba7232521d836d0793330e3a4e:
Eilon Greenstein (1):
bnx2x: Version update

are available in the git repository at:

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

Assaf Krauss (1):
iwlwifi: W/A for the TSF correction in IBSS

Dan Williams (2):
atmel: return ENOENT on request_firmware failure
atmel: try open system authentication too

Felipe Balbi (1):
net: rfkill: add missing line break

Gregory Greenman (1):
iwlwifi: call apm stop on exit

Jan-Espen Pettersen (1):
mac80211: don't send empty extended rates IE

Jiri Slaby (2):
Ath5k: lock beacons
Ath5k: fix bintval setup

John W. Linville (1):
mac80211: quiet chatty IBSS merge message

Jouni Malinen (2):
mac80211: Use IWEVASSOCREQIE instead of IWEVCUSTOM
mac80211: Fix debugfs file add/del for netdev

Julia Lawall (1):
net/mac80211/mesh.c: correct the argument to __mesh_table_free

Mohamed Abbas (2):
iwlwifi: void full rxon on rx chain changes
iwlwifi: fix apm_stop function

Ron Rindjunsky (3):
iwlwifi: allow consecutive scans in unassociated state
iwlwifi: fix hidden ssid discovery in passive channels
iwlwifi: use station's mimo power save values

Tomas Winkler (6):
iwlwifi: clean up hw scan handler
iwlwifi: align set channel with mac80211
iwlwifi: cleanup PCI register handling
iwlwifi: generic init calibrations framework
iwlwifi: fix rx_chain computation
iwlwifi: fix 64bit platform firmware loading

 drivers/net/wireless/ath5k/base.c           |   23 ++++--
 drivers/net/wireless/ath5k/base.h           |    1 +
 drivers/net/wireless/atmel.c                |   51 ++++++++-----
 drivers/net/wireless/iwlwifi/iwl-4965-hw.h  |   13 ++--
 drivers/net/wireless/iwlwifi/iwl-4965.c     |   10 +-
 drivers/net/wireless/iwlwifi/iwl-5000-hw.h  |    7 ++
 drivers/net/wireless/iwlwifi/iwl-5000.c     |   83 +++++----------------
 drivers/net/wireless/iwlwifi/iwl-agn-rs.c   |    3 +-
 drivers/net/wireless/iwlwifi/iwl-agn.c      |   83 ++++++++++++---------
 drivers/net/wireless/iwlwifi/iwl-calib.c    |   60 +++++++++++++++
 drivers/net/wireless/iwlwifi/iwl-commands.h |    4 +-
 drivers/net/wireless/iwlwifi/iwl-core.c     |  107 +++++++++++++--------------
 drivers/net/wireless/iwlwifi/iwl-core.h     |   12 ++-
 drivers/net/wireless/iwlwifi/iwl-dev.h      |   15 ++--
 drivers/net/wireless/iwlwifi/iwl-fh.h       |    1 +
 drivers/net/wireless/iwlwifi/iwl-power.c    |   27 +++----
 drivers/net/wireless/iwlwifi/iwl-rx.c       |    5 +-
 drivers/net/wireless/iwlwifi/iwl-scan.c     |    2 +-
 net/mac80211/debugfs_netdev.c               |   24 +++---
 net/mac80211/ieee80211_i.h                  |    6 ++
 net/mac80211/mesh.c                         |    2 +-
 net/mac80211/mlme.c                         |   52 +++----------
 net/rfkill/rfkill.c                         |    2 +-
 23 files changed, 311 insertions(+), 282 deletions(-)
drivers/net/wireless/ath5k/base.c +17 -6
index b20a45a..0676c6d 100644
@@ -251,7 +251,7 @@ static inline void ath5k_txbuf_free(struct ath5k_softc *sc,
 		return;
 	pci_unmap_single(sc->pdev, bf->skbaddr, bf->skb->len,
 			PCI_DMA_TODEVICE);
-	dev_kfree_skb(bf->skb);
+	dev_kfree_skb_any(bf->skb);
 	bf->skb = NULL;
 }
 
@@ -466,6 +466,7 @@ ath5k_pci_probe(struct pci_dev *pdev,
 	mutex_init(&sc->lock);
 	spin_lock_init(&sc->rxbuflock);
 	spin_lock_init(&sc->txbuflock);
+	spin_lock_init(&sc->block);
 
 	/* Set private data */
 	pci_set_drvdata(pdev, hw);
@@ -2179,8 +2180,11 @@ ath5k_beacon_config(struct ath5k_softc *sc)
 
 		sc->imask |= AR5K_INT_SWBA;
 
-		if (ath5k_hw_hasveol(ah))
+		if (ath5k_hw_hasveol(ah)) {
+			spin_lock(&sc->block);
 			ath5k_beacon_send(sc);
+			spin_unlock(&sc->block);
+		}
 	}
 	/* TODO else AP */
 
@@ -2403,7 +2407,9 @@ ath5k_intr(int irq, void *dev_id)
 						  TSF_TO_TU(tsf),
 						  (unsigned long long) tsf);
 				} else {
+					spin_lock(&sc->block);
 					ath5k_beacon_send(sc);
+					spin_unlock(&sc->block);
 				}
 			}
 			if (status & AR5K_INT_RXEOL) {
@@ -2745,6 +2751,11 @@ static int ath5k_add_interface(struct ieee80211_hw *hw,
 		ret = -EOPNOTSUPP;
 		goto end;
 	}
+
+	/* Set to a reasonable value. Note that this will
+	 * be set to mac80211's value at ath5k_config(). */
+	sc->bintval = 1000;
+
 	ret = 0;
 end:
 	mutex_unlock(&sc->lock);
@@ -2789,9 +2800,6 @@ ath5k_config_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
 	struct ath5k_hw *ah = sc->ah;
 	int ret;
 
-	/* Set to a reasonable value. Note that this will
-	 * be set to mac80211's value at ath5k_config(). */
-	sc->bintval = 1000;
 	mutex_lock(&sc->lock);
 	if (sc->vif != vif) {
 		ret = -EIO;
@@ -3050,6 +3058,7 @@ static int
 ath5k_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb)
 {
 	struct ath5k_softc *sc = hw->priv;
+	unsigned long flags;
 	int ret;
 
 	ath5k_debug_dump_skb(sc, skb, "BC  ", 1);
@@ -3059,12 +3068,14 @@ ath5k_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb)
 		goto end;
 	}
 
+	spin_lock_irqsave(&sc->block, flags);
 	ath5k_txbuf_free(sc, sc->bbuf);
 	sc->bbuf->skb = skb;
 	ret = ath5k_beacon_setup(sc, sc->bbuf);
 	if (ret)
 		sc->bbuf->skb = NULL;
-	else {
+	spin_unlock_irqrestore(&sc->block, flags);
+	if (!ret) {
 		ath5k_beacon_config(sc);
 		mmiowb();
 	}
drivers/net/wireless/ath5k/base.h +1 -0
index d7e03e6..7ec2f37 100644
@@ -172,6 +172,7 @@ struct ath5k_softc {
 	struct tasklet_struct	txtq;		/* tx intr tasklet */
 	struct ath5k_led	tx_led;		/* tx led */
 
+	spinlock_t		block;		/* protects beacon */
 	struct ath5k_buf	*bbuf;		/* beacon buffer */
 	unsigned int		bhalq,		/* SW q for outgoing beacons */
 				bmisscount,	/* missed beacon transmits */
drivers/net/wireless/atmel.c +31 -20

152 lines not on this page · raw message

drivers/net/wireless/iwlwifi/iwl-4965-hw.h +7 -6
index fce950f..f4793a6 100644
@@ -98,16 +98,17 @@
 #define IWL_RSSI_OFFSET	44
 
 
-#include "iwl-commands.h"
 
 /* PCI registers */
-#define PCI_LINK_CTRL      0x0F0	/* 1 byte */
-#define PCI_POWER_SOURCE   0x0C8
-#define PCI_REG_WUM8       0x0E8
+#define PCI_CFG_RETRY_TIMEOUT	0x041
+#define PCI_CFG_POWER_SOURCE	0x0C8
+#define PCI_REG_WUM8		0x0E8
+#define PCI_CFG_LINK_CTRL	0x0F0
 
 /* PCI register values */
-#define PCI_LINK_VAL_L0S_EN	0x01
-#define PCI_LINK_VAL_L1_EN	0x02
+#define PCI_CFG_LINK_CTRL_VAL_L0S_EN	0x01
+#define PCI_CFG_LINK_CTRL_VAL_L1_EN	0x02
+#define PCI_CFG_CMD_REG_INT_DIS_MSK	0x04
 #define PCI_CFG_PMC_PME_FROM_D3COLD_SUPPORT         (0x80000000)
 
 #define TFD_QUEUE_SIZE_MAX      (256)
drivers/net/wireless/iwlwifi/iwl-4965.c +5 -5
index e258122..d9c4fdb 100644
@@ -399,7 +399,7 @@ static void iwl4965_nic_config(struct iwl_priv *priv)
 	unsigned long flags;
 	u32 val;
 	u16 radio_cfg;
-	u8 val_link;
+	u16 link;
 
 	spin_lock_irqsave(&priv->lock, flags);
 
@@ -410,10 +410,10 @@ static void iwl4965_nic_config(struct iwl_priv *priv)
 				       val & ~(1 << 11));
 	}
 
-	pci_read_config_byte(priv->pci_dev, PCI_LINK_CTRL, &val_link);
+	pci_read_config_word(priv->pci_dev, PCI_CFG_LINK_CTRL, &link);
 
 	/* L1 is enabled by BIOS */
-	if ((val_link & PCI_LINK_VAL_L1_EN) == PCI_LINK_VAL_L1_EN)
+	if ((link & PCI_CFG_LINK_CTRL_VAL_L1_EN) == PCI_CFG_LINK_CTRL_VAL_L1_EN)
 		/* diable L0S disabled L1A enabled */
 		iwl_set_bit(priv, CSR_GIO_REG, CSR_GIO_REG_VAL_L0S_ENABLED);
 	else
@@ -474,8 +474,8 @@ static void iwl4965_apm_stop(struct iwl_priv *priv)
 	iwl_set_bit(priv, CSR_RESET, CSR_RESET_REG_FLAG_SW_RESET);
 
 	udelay(10);
-
-	iwl_set_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE);
+	/* clear "init complete"  move adapter D0A* --> D0U state */
+	iwl_clear_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE);
 	spin_unlock_irqrestore(&priv->lock, flags);
 }
 
drivers/net/wireless/iwlwifi/iwl-5000-hw.h +7 -0
index 17d4f31..c479ee2 100644
@@ -129,6 +129,13 @@ struct iwl5000_shared {
 	__le32 padding2;
 } __attribute__ ((packed));
 
+/* calibrations defined for 5000 */
+/* defines the order in which results should be sent to the runtime uCode */
+enum iwl5000_calib {
+	IWL5000_CALIB_LO,
+	IWL5000_CALIB_TX_IQ,
+	IWL5000_CALIB_TX_IQ_PERD,
+};
 
 #endif /* __iwl_5000_hw_h__ */
 
drivers/net/wireless/iwlwifi/iwl-5000.c +18 -65

141 lines not on this page · raw message

drivers/net/wireless/iwlwifi/iwl-agn-rs.c +2 -1
index 754fef5..90a2b6d 100644
@@ -1153,7 +1153,8 @@ static int rs_switch_to_mimo2(struct iwl_priv *priv,
 	    !sta->ht_info.ht_supported)
 		return -1;
 
-	if (priv->current_ht_config.tx_mimo_ps_mode == IWL_MIMO_PS_STATIC)
+	if (((sta->ht_info.cap & IEEE80211_HT_CAP_MIMO_PS) >> 2)
+						== IWL_MIMO_PS_STATIC)
 		return -1;
 
 	/* Need both Tx chains/antennas to support MIMO */
drivers/net/wireless/iwlwifi/iwl-agn.c +47 -36

217 lines not on this page · raw message

drivers/net/wireless/iwlwifi/iwl-calib.c +60 -0

66 lines not on this page · raw message

drivers/net/wireless/iwlwifi/iwl-commands.h +2 -2
index 28b5b09..fbd8cc1 100644
@@ -2026,8 +2026,8 @@ struct iwl4965_spectrum_notification {
  *   bit 2 - '0' PM have to walk up every DTIM
  *           '1' PM could sleep over DTIM till listen Interval.
  * PCI power managed
- *   bit 3 - '0' (PCI_LINK_CTRL & 0x1)
- *           '1' !(PCI_LINK_CTRL & 0x1)
+ *   bit 3 - '0' (PCI_CFG_LINK_CTRL & 0x1)
+ *           '1' !(PCI_CFG_LINK_CTRL & 0x1)
  * Force sleep Modes
  *   bit 31/30- '00' use both mac/xtal sleeps
  *              '01' force Mac sleep
drivers/net/wireless/iwlwifi/iwl-core.c +52 -55

186 lines not on this page · raw message

drivers/net/wireless/iwlwifi/iwl-core.h +8 -4
index 64f139e..b5db050 100644
@@ -186,12 +186,9 @@ struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg,
 void iwl_hw_detect(struct iwl_priv *priv);
 
 void iwl_clear_stations_table(struct iwl_priv *priv);
-void iwl_free_calib_results(struct iwl_priv *priv);
 void iwl_reset_qos(struct iwl_priv *priv);
 void iwl_set_rxon_chain(struct iwl_priv *priv);
-int iwl_set_rxon_channel(struct iwl_priv *priv,
-				enum ieee80211_band band,
-				u16 channel);
+int iwl_set_rxon_channel(struct iwl_priv *priv, struct ieee80211_channel *ch);
 void iwl_set_rxon_ht(struct iwl_priv *priv, struct iwl_ht_info *ht_info);
 u8 iwl_is_fat_tx_allowed(struct iwl_priv *priv,
 			 struct ieee80211_ht_info *sta_ht_inf);
@@ -291,6 +288,13 @@ int iwl_scan_initiate(struct iwl_priv *priv);
 void iwl_setup_rx_scan_handlers(struct iwl_priv *priv);
 void iwl_setup_scan_deferred_work(struct iwl_priv *priv);
 
+/*******************************************************************************
+ * Calibrations - implemented in iwl-calib.c
+ ******************************************************************************/
+int iwl_send_calib_results(struct iwl_priv *priv);
+int iwl_calib_set(struct iwl_calib_result *res, const u8 *buf, int len);
+void iwl_calib_free_results(struct iwl_priv *priv);
+
 /*****************************************************
  *   S e n d i n g     H o s t     C o m m a n d s   *
  *****************************************************/
drivers/net/wireless/iwlwifi/iwl-dev.h +6 -9
index c19db43..deec634 100644
@@ -412,7 +412,6 @@ struct iwl_ht_info {
 	/* self configuration data */
 	u8 is_ht;
 	u8 supported_chan_width;
-	u16 tx_mimo_ps_mode;
 	u8 is_green_field;
 	u8 sgf;			/* HT_SHORT_GI_* short guard interval */
 	u8 max_amsdu_size;
@@ -746,13 +745,10 @@ struct statistics_general_data {
 	u32 beacon_energy_c;
 };
 
-struct iwl_calib_results {
-	void *tx_iq_res;
-	void *tx_iq_perd_res;
-	void *lo_res;
-	u32 tx_iq_res_len;
-	u32 tx_iq_perd_res_len;
-	u32 lo_res_len;
+/* Opaque calibration results */
+struct iwl_calib_result {
+	void *buf;
+	size_t buf_len;
 };
 
 enum ucode_type {
@@ -814,6 +810,7 @@ enum {
 
 
 #define IWL_MAX_NUM_QUEUES	20 /* FIXME: do dynamic allocation */
+#define IWL_CALIB_MAX  3
 
 struct iwl_priv {
 
@@ -858,7 +855,7 @@ struct iwl_priv {
 	s32 last_temperature;
 
 	/* init calibration results */
-	struct iwl_calib_results calib_results;
+	struct iwl_calib_result calib_results[IWL_CALIB_MAX];
 
 	/* Scan related variables */
 	unsigned long last_scan_jiffies;
drivers/net/wireless/iwlwifi/iwl-fh.h +1 -0
index 9446424..cd11c0c 100644
@@ -287,6 +287,7 @@
 
 #define FH_RSSR_CHNL0_RX_STATUS_CHNL_IDLE	(0x01000000)
 
+#define FH_MEM_TFDIB_REG1_ADDR_BITSHIFT	28
 
 /**
  * Transmit DMA Channel Control/Status Registers (TCSR)
drivers/net/wireless/iwlwifi/iwl-power.c +11 -16
index a099c9e..eb6312d 100644
@@ -152,9 +152,10 @@ static u16 iwl_get_auto_power_mode(struct iwl_priv *priv)
 /* initialize to default */
 static int iwl_power_init_handle(struct iwl_priv *priv)
 {
-	int ret = 0, i;
 	struct iwl_power_mgr *pow_data;
 	int size = sizeof(struct iwl_power_vec_entry) * IWL_POWER_MAX;
+	struct iwl_powertable_cmd *cmd;
+	int i;
 	u16 pci_pm;
 
 	IWL_DEBUG_POWER("Initialize power \n");
@@ -167,25 +168,19 @@ static int iwl_power_init_handle(struct iwl_priv *priv)
 	memcpy(&pow_data->pwr_range_1[0], &range_1[0], size);
 	memcpy(&pow_data->pwr_range_2[0], &range_2[0], size);
 
-	ret = pci_read_config_word(priv->pci_dev,
-				  PCI_LINK_CTRL, &pci_pm);
-	if (ret != 0)
-		return 0;
-	else {
-		struct iwl_powertable_cmd *cmd;
+	pci_read_config_word(priv->pci_dev, PCI_CFG_LINK_CTRL, &pci_pm);
 
-		IWL_DEBUG_POWER("adjust power command flags\n");
+	IWL_DEBUG_POWER("adjust power command flags\n");
 
-		for (i = 0; i < IWL_POWER_MAX; i++) {
-			cmd = &pow_data->pwr_range_0[i].cmd;
+	for (i = 0; i < IWL_POWER_MAX; i++) {
+		cmd = &pow_data->pwr_range_0[i].cmd;
 
-			if (pci_pm & 0x1)
-				cmd->flags &= ~IWL_POWER_PCI_PM_MSK;
-			else
-				cmd->flags |= IWL_POWER_PCI_PM_MSK;
-		}
+		if (pci_pm & PCI_CFG_LINK_CTRL_VAL_L0S_EN)
+			cmd->flags &= ~IWL_POWER_PCI_PM_MSK;
+		else
+			cmd->flags |= IWL_POWER_PCI_PM_MSK;
 	}
-	return ret;
+	return 0;
 }
 
 /* adjust power command according to dtim period and power level*/
drivers/net/wireless/iwlwifi/iwl-rx.c +4 -1
index f3f6ea4..e81bfc4 100644
@@ -1173,7 +1173,10 @@ void iwl_rx_reply_rx(struct iwl_priv *priv,
 
 	rx_status.antenna = 0;
 	rx_status.flag = 0;
-	rx_status.flag |= RX_FLAG_TSFT;
+
+	/* TSF isn't reliable. In order to allow smooth user experience,
+	 * this W/A doesn't propagate it to the mac80211 */
+	/*rx_status.flag |= RX_FLAG_TSFT;*/
 
 	if ((unlikely(rx_start->cfg_phy_cnt > 20))) {
 		IWL_DEBUG_DROP("dsp size out of range [0,20]: %d/n",
drivers/net/wireless/iwlwifi/iwl-scan.c +1 -1
index 9bb6adb..6c8ac3a 100644
@@ -421,7 +421,7 @@ static int iwl_get_channels_for_scan(struct iwl_priv *priv,
 		else
 			scan_ch->type = SCAN_CHANNEL_TYPE_ACTIVE;
 
-		if ((scan_ch->type & SCAN_CHANNEL_TYPE_ACTIVE) && n_probes)
+		if (n_probes)
 			scan_ch->type |= IWL_SCAN_PROBE_MASK(n_probes);
 
 		scan_ch->active_dwell = cpu_to_le16(active_dwell);
net/mac80211/debugfs_netdev.c +12 -12
index 475f89a..8165df5 100644
@@ -248,8 +248,8 @@ IEEE80211_IF_WFILE(min_discovery_timeout,
 static void add_sta_files(struct ieee80211_sub_if_data *sdata)
 {
 	DEBUGFS_ADD(drop_unencrypted, sta);
-	DEBUGFS_ADD(force_unicast_rateidx, ap);
-	DEBUGFS_ADD(max_ratectrl_rateidx, ap);
+	DEBUGFS_ADD(force_unicast_rateidx, sta);
+	DEBUGFS_ADD(max_ratectrl_rateidx, sta);
 
 	DEBUGFS_ADD(state, sta);
 	DEBUGFS_ADD(bssid, sta);
@@ -283,8 +283,8 @@ static void add_ap_files(struct ieee80211_sub_if_data *sdata)
 static void add_wds_files(struct ieee80211_sub_if_data *sdata)
 {
 	DEBUGFS_ADD(drop_unencrypted, wds);
-	DEBUGFS_ADD(force_unicast_rateidx, ap);
-	DEBUGFS_ADD(max_ratectrl_rateidx, ap);
+	DEBUGFS_ADD(force_unicast_rateidx, wds);
+	DEBUGFS_ADD(max_ratectrl_rateidx, wds);
 
 	DEBUGFS_ADD(peer, wds);
 }
@@ -292,8 +292,8 @@ static void add_wds_files(struct ieee80211_sub_if_data *sdata)
 static void add_vlan_files(struct ieee80211_sub_if_data *sdata)
 {
 	DEBUGFS_ADD(drop_unencrypted, vlan);
-	DEBUGFS_ADD(force_unicast_rateidx, ap);
-	DEBUGFS_ADD(max_ratectrl_rateidx, ap);
+	DEBUGFS_ADD(force_unicast_rateidx, vlan);
+	DEBUGFS_ADD(max_ratectrl_rateidx, vlan);
 }
 
 static void add_monitor_files(struct ieee80211_sub_if_data *sdata)
@@ -381,8 +381,8 @@ static void add_files(struct ieee80211_sub_if_data *sdata)
 static void del_sta_files(struct ieee80211_sub_if_data *sdata)
 {
 	DEBUGFS_DEL(drop_unencrypted, sta);
-	DEBUGFS_DEL(force_unicast_rateidx, ap);
-	DEBUGFS_DEL(max_ratectrl_rateidx, ap);
+	DEBUGFS_DEL(force_unicast_rateidx, sta);
+	DEBUGFS_DEL(max_ratectrl_rateidx, sta);
 
 	DEBUGFS_DEL(state, sta);
 	DEBUGFS_DEL(bssid, sta);
@@ -416,8 +416,8 @@ static void del_ap_files(struct ieee80211_sub_if_data *sdata)
 static void del_wds_files(struct ieee80211_sub_if_data *sdata)
 {
 	DEBUGFS_DEL(drop_unencrypted, wds);
-	DEBUGFS_DEL(force_unicast_rateidx, ap);
-	DEBUGFS_DEL(max_ratectrl_rateidx, ap);
+	DEBUGFS_DEL(force_unicast_rateidx, wds);
+	DEBUGFS_DEL(max_ratectrl_rateidx, wds);
 
 	DEBUGFS_DEL(peer, wds);
 }
@@ -425,8 +425,8 @@ static void del_wds_files(struct ieee80211_sub_if_data *sdata)
 static void del_vlan_files(struct ieee80211_sub_if_data *sdata)
 {
 	DEBUGFS_DEL(drop_unencrypted, vlan);
-	DEBUGFS_DEL(force_unicast_rateidx, ap);
-	DEBUGFS_DEL(max_ratectrl_rateidx, ap);
+	DEBUGFS_DEL(force_unicast_rateidx, vlan);
+	DEBUGFS_DEL(max_ratectrl_rateidx, vlan);
 }
 
 static void del_monitor_files(struct ieee80211_sub_if_data *sdata)
net/mac80211/ieee80211_i.h +6 -0
index ec59345..586a9b4 100644
@@ -470,6 +470,8 @@ struct ieee80211_sub_if_data {
 			struct dentry *auth_transaction;
 			struct dentry *flags;
 			struct dentry *num_beacons_sta;
+			struct dentry *force_unicast_rateidx;
+			struct dentry *max_ratectrl_rateidx;
 		} sta;
 		struct {
 			struct dentry *drop_unencrypted;
@@ -483,9 +485,13 @@ struct ieee80211_sub_if_data {
 		struct {
 			struct dentry *drop_unencrypted;
 			struct dentry *peer;
+			struct dentry *force_unicast_rateidx;
+			struct dentry *max_ratectrl_rateidx;
 		} wds;
 		struct {
 			struct dentry *drop_unencrypted;
+			struct dentry *force_unicast_rateidx;
+			struct dentry *max_ratectrl_rateidx;
 		} vlan;
 		struct {
 			struct dentry *mode;
net/mac80211/mesh.c +1 -1
index b5933b2..35f2f95 100644
@@ -383,7 +383,7 @@ errcopy:
 		hlist_for_each_safe(p, q, &newtbl->hash_buckets[i])
 			tbl->free_node(p, 0);
 	}
-	__mesh_table_free(tbl);
+	__mesh_table_free(newtbl);
 endgrow:
 	return NULL;
 }
net/mac80211/mlme.c +11 -41

76 lines not on this page · raw message

net/rfkill/rfkill.c +1 -1
index 35a9994..74aecc0 100644
@@ -377,7 +377,7 @@ static ssize_t rfkill_claim_show(struct device *dev,
 {
 	struct rfkill *rfkill = to_rfkill(dev);
 
-	return sprintf(buf, "%d", rfkill->user_claim);
+	return sprintf(buf, "%d\n", rfkill->user_claim);
 }
 
 static ssize_t rfkill_claim_store(struct device *dev,
Signature · 2 lines
John W. Linville
[email protected]
#1 lore raw
Quoted 6 lines · John W. Linville

Dave,

Here is the latest round of fixes intended for 2.6.27. I think the non-iwlwifi ones are pretty solid. As for the iwlwifi ones, the Intel guys assure me that these are important changes.

Quoted 6 lines

You will notice that (despite my exhortations) no less than two of the iwlwifi patches declare themselves as cleanups. I have included them anyway because the later fixes depend on them and they seemed harmless enough. Plus, they were posted (or at least written) before the recent fireworks about what we should be merging after -rc1...

PCI cleanup patch is badly named. It fixes PCI registers sizes and ads one forgotten hw workaround
I called it cleanup because it went through all PCI accesses we have in the driver.

Scan cleanup was requested because of dependencies but it's harmless, we can rebase the patches
prefer not it's just waste of time. Afther massive ath9k merge I didn't see it was a conceptual problem.

Thanks
Tomas
--
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

maintainer
#2 lore raw

From: "Tomas Winkler" <[email protected]>
Date: Wed, 27 Aug 2008 10:38:56 +0300

Quoted 1 line

Afther massive ath9k merge I didn't see it was a conceptual problem.

Stop right there.

You don't see it as a problem because you're not the one who has to explain all of this shit to Linus and ends up getting flamed by him when inappropriate changes are in my tree outside of the merge window.

Think for just one second about the people who are upstream from you who have to deal with all of these issues, and not some selfish aspect such as what is convenient and nice for you and your driver, and what other people "got away with".
--
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

#3 lore raw

Hi Dave,

Quoted 7 lines
Quoted 1 line

Afther massive ath9k merge I didn't see it was a conceptual problem.

Stop right there.

You don't see it as a problem because you're not the one who has to explain all of this shit to Linus and ends up getting flamed by him when inappropriate changes are in my tree outside of the merge window.

I did a quick review of the offending patch queue. And some of them should go in since they are fixing real bugs (as far as I can tell from a quick review). Others have to clearly wait for the next merge window.

Thomas, please go through the list of patches and pick the real bug fixes. The cleanup patches can't go in since they are after the merge window. And being one of the offenders why Dave got flamed by Linus, there is no way to get these through. And my big offender was a regression that broke userspace and came with a lengthy commit message.

Speaking of which, you better have a more convincing commit message if you wanna get something in after the merge window. It should make clear why this is a bug or a regression and why it can't wait until the next merge window.

Please take this into account for any future patches since Linus now set a really high bar for patches after the merge window.

Regards

Marcel

#4 lore raw
Quoted 10 lines · Marcel Holtmann

Hi Dave,

Quoted 7 lines
Quoted 1 line

Afther massive ath9k merge I didn't see it was a conceptual problem.

Stop right there.

You don't see it as a problem because you're not the one who has to explain all of this shit to Linus and ends up getting flamed by him when inappropriate changes are in my tree outside of the merge window.

Quoted 7 lines

I did a quick review of the offending patch queue. And some of them should go in since they are fixing real bugs (as far as I can tell from a quick review). Others have to clearly wait for the next merge window.

Thomas, please go through the list of patches and pick the real bug fixes. The cleanup patches can't go in since they are after the merge window.

I just repeat myself again, for the current series except the scanning cleaning patches these patches
are must. This particular patch is there just because the hidden AP connectivity fixes were stacked above it.

And being one of the offenders why Dave got flamed by Linus,

Quoted 2 lines

there is no way to get these through. And my big offender was a regression that broke userspace and came with a lengthy commit message.

There is a central problem here, since I cannot really adjust driver development progress from obvious reason with Linux merging window. Upstream kernel is unfortunately not the only customer I report to. So actually stable versions got half backed drivers depending on some arbitrary time cut from my (selfish) development point of view. In this particular point we are really only cleaning bug database, our mistake here is that we didn't export these bug to external bugzilla.

Quoted 4 lines

Speaking of which, you better have a more convincing commit message if you wanna get something in after the merge window. It should make clear why this is a bug or a regression and why it can't wait until the next merge window.

Yes, I've already got this message on 3 channels already :)

Quoted 2 lines

Please take this into account for any future patches since Linus now set a really high bar for patches after the merge window.

Understood.
Tomas

maintainer
#5 lore raw
Quoted 5 lines · Tomas Winkler

There is a central problem here, since I cannot really adjust driver development progress from obvious reason with Linux merging window. Upstream kernel is unfortunately not the only customer I report to. So actually stable versions got half backed drivers depending on some arbitrary time cut from my (selfish) development point of view.

FWIW, many people including myself think you should work the other way around, that is develop things in the mainline/wireless-testing tree rather than developing a stable version internally and then dumping a big pile of patches whenever it's convenient for you. IOW, we think you should use Linux upstream as your development tree and then branch off of that for the internal stabilisation trees you need for other customers, rather than having some sort of internal development tree and branching out Linux upstream as you appear to work.

That would also avoid the nasty surprises you've gotten a few times where other people managed to get patches to iwlwifi drivers into the Linux tree without you noticing.

johannes

maintainer
#6 lore raw

From: Johannes Berg <[email protected]>
Date: Wed, 27 Aug 2008 12:10:28 +0200

Quoted 4 lines

FWIW, many people including myself think you should work the other way around, that is develop things in the mainline/wireless-testing tree rather than developing a stable version internally and then dumping a big pile of patches whenever it's convenient for you.

Absolutely.
--
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

#7 lore raw
In reply to Johannes Berg
Quoted 8 lines · Johannes Berg
Quoted 5 lines · Tomas Winkler

There is a central problem here, since I cannot really adjust driver development progress from obvious reason with Linux merging window. Upstream kernel is unfortunately not the only customer I report to. So actually stable versions got half backed drivers depending on some arbitrary time cut from my (selfish) development point of view.

Quoted 4 lines

FWIW, many people including myself think you should work the other way around, that is develop things in the mainline/wireless-testing tree rather than developing a stable version internally
big pile of patches whenever it's convenient for you.

We put big pile once the driver was functional and nobody expected it to be merged into stable kernel from that point
we post everything that is mergable. The patches are sent out each Friday after they got through internal review there is nothing, there is nothing magical about it.

IOW, we think you

Quoted 4 lines

should use Linux upstream as your development tree and then branch off of that for the internal stabilisation trees you need for other customers, rather than having some sort of internal development tree and branching out Linux upstream as you appear to work.

Unfortunately fixing bugs on stable branch take precedence of adjusting to new API on development branch that someone decided to do.
I wanted to work directly on wireless testing but it was broken over
an over and I have only limited resources more in testing then in development I just had to branch out to be ready with the driver when HW is out. People just check the immediate impact of they fix the don't test for collateral damage and this is understandable an individual developer doesn't have lab with IBSS, BSS, AP, etc setups.

Quoted 3 lines

That would also avoid the nasty surprises you've gotten a few times where other people managed to get patches to iwlwifi drivers into the Linux tree without you noticing.

I've noticed just deferred to fixing it.

In summary
This was my first Linux project, it was first project that was done on new HW (nobody could test it but us) and I don't deny I did a lot of mistake in development process I don't deny that and we are learning from them.
Tomas
--
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

maintainer
#8 lore raw

From: "Tomas Winkler" <[email protected]>
Date: Wed, 27 Aug 2008 14:34:28 +0300

Quoted 8 lines

Unfortunately fixing bugs on stable branch take precedence of adjusting to new API on development branch that someone decided to do.
I wanted to work directly on wireless testing but it was broken over
an over and I have only limited resources more in testing then in development I just had to branch out to be ready with the driver when HW is out. People just check the immediate impact of they fix the don't test for collateral damage and this is understandable an individual developer doesn't have lab with IBSS, BSS, AP, etc setups.

But think about this from the other perspective.

When you queue up tons of things, especially in infrastructure level code such as mac80211, and on top of it you do your work on the stable branch and do not do you work against the development tree, guess what happens?

You show up with accumulated piles of non-trivial patches for people to review. And then you'll get upset when they suggest that things be implemented differently.

It's all because of the gap in time.

And during this time, if you had submitted earlier, you would end up doing smaller and mode gradual modifications to your design. And you'd take care of them before they effect subsequent pieces of work you want to do which depend upon the earlier bits.

The longer you queue stuff up, the more painful having to change stuff at the beginning of that queue becomes. It can invalidate everything else you worked on.

The only sane way to operate is to post your work early and often, or else you'll live in a world of hurt, and it will be nobody's fault but your own.

#9 lore raw
Quoted 14 lines · David Miller

From: "Tomas Winkler" <[email protected]>
Date: Wed, 27 Aug 2008 14:34:28 +0300

Quoted 8 lines

Unfortunately fixing bugs on stable branch take precedence of adjusting to new API on development branch that someone decided to do.
I wanted to work directly on wireless testing but it was broken over
an over and I have only limited resources more in testing then in development I just had to branch out to be ready with the driver when HW is out. People just check the immediate impact of they fix the don't test for collateral damage and this is understandable an individual developer doesn't have lab with IBSS, BSS, AP, etc setups.

But think about this from the other perspective.

Quoted 8 lines

When you queue up tons of things, especially in infrastructure level code such as mac80211, and on top of it you do your work on the stable branch and do not do you work against the development tree, guess what happens?

You show up with accumulated piles of non-trivial patches for people to review. And then you'll get upset when they suggest that things be implemented differently.

I never worked that way I've published immediately what I had. I don't know where did you get this impression
If I didn't publish something it's just too reasons.
The code was made dirty and I didn't like design myself (for example our 11h implementation), even though it's publicly available. or just simply didn't have time because I have to satisfy first thous who pays my check ( everybody to feed their children after all:) ) (e.g. rfkill fixes)
Almost every driver has it's own development branch, we didn't do something different here, this is just classical divide and conquer strategy.

Quoted 7 lines

It's all because of the gap in time.

And during this time, if you had submitted earlier, you would end up doing smaller and mode gradual modifications to your design. And you'd take care of them before they effect subsequent pieces of work you want to do which depend upon the earlier bits.

Quoted 7 lines

The longer you queue stuff up, the more painful having to change stuff at the beginning of that queue becomes. It can invalidate everything else you worked on.

The only sane way to operate is to post your work early and often, or else you'll live in a world of hurt, and it will be nobody's fault but your own.

This is all understood and this would be indeed the ideal case. Tomas
--
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

#10 lore raw
In reply to Tomas Winkler
Quoted 5 lines · Tomas Winkler
Quoted 4 lines

should use Linux upstream as your development tree and then branch off of that for the internal stabilisation trees you need for other customers, rather than having some sort of internal development tree and branching out Linux upstream as you appear to work.

Quoted 8 lines

Unfortunately fixing bugs on stable branch take precedence of adjusting to new API on development branch that someone decided to do.
I wanted to work directly on wireless testing but it was broken over
an over and I have only limited resources more in testing then in development I just had to branch out to be ready with the driver when HW is out. People just check the immediate impact of they fix the don't test for collateral damage and this is understandable an individual developer doesn't have lab with IBSS, BSS, AP, etc setups.

I think it would be an advantage for you to develop in wireless-testing and use wireless-2.6 and probably additionally some internal trees as stable trees. Like everybody else does it.

The advantage is simple: You get more people testing your code. --
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

#11 lore raw
Quoted 15 lines · Michael Buesch
Quoted 5 lines · Tomas Winkler
Quoted 4 lines

should use Linux upstream as your development tree and then branch off of that for the internal stabilisation trees you need for other customers, rather than having some sort of internal development tree and branching out Linux upstream as you appear to work.

Quoted 8 lines

Unfortunately fixing bugs on stable branch take precedence of adjusting to new API on development branch that someone decided to do.
I wanted to work directly on wireless testing but it was broken over
an over and I have only limited resources more in testing then in development I just had to branch out to be ready with the driver when HW is out. People just check the immediate impact of they fix the don't test for collateral damage and this is understandable an individual developer doesn't have lab with IBSS, BSS, AP, etc setups.

Quoted 3 lines

I think it would be an advantage for you to develop in wireless-testing and use wireless-2.6 and probably additionally some internal trees as stable trees. Like everybody else does it.

I'm not sure what you are taking about, we did post patches to wireless-testing, the driver for 5000 HW is working in 2.6.27-rc4 I personally use it every day. I'm sending bug fixes, like this seris of patches is direct answer to bugs that were discovered very recently, I'm not sure what's everybody problem here.

Quoted 1 line

The advantage is simple: You get more people testing your code.

We fixed bugs in wireless-testing/mac80211 that were there for months just because we are only one that do any comprehensive validation. I don't want insult anyone and I really exaggeration here but sometimes I have feeling that more people are breaking the code.

Tomas

#12 lore raw
Quoted 5 lines · On Wednesday 27 August 2008 16:55:15 Tomas Winkler wrote:

I'm not sure what you are taking about, we did post patches to wireless-testing, the driver for 5000 HW is working in 2.6.27-rc4 I personally use it every day. I'm sending bug fixes, like this seris of patches is direct answer to bugs that were discovered very recently, I'm not sure what's everybody problem here.

The problem is that these patches are posted in huge batches. There are three problems (probably more) with that:
1) "Oh, one of these 15 patches recently merged broke my hw" instead of
"This patch XXX recently merged broke my hw"
2) It's a _lot_ harder to review. I do not have the time to review a lot of patches at once. I bet other people won't either.
3) If somebody has any objections against one patch, you'll probably have to rebase them all (See recent pull request vs cleanups). That's additional work for you.

What's the problem with sending patches upstream as soon as you finished them, instead of piling them up locally and sending them alltogether?

Quoted 4 lines

We fixed bugs in wireless-testing/mac80211 that were there for months just because we are only one that do any comprehensive validation. I don't want insult anyone and I really exaggeration here but sometimes I have feeling that more people are breaking the code.

If you work directly upstream, you will discover these bugs even faster. If you maintain your local fork of mac80211, you will have a delay. But you will have to handle them _anyway_. It's just delayed.

And please, don't act like you don't add bugs to mac80211. There were several bugs that broke connections on b43 (and probably other hw, too) in the past.

Signature · 5 lines
Greetings Michael.
--
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
#13 lore raw
Quoted 18 lines · Michael Buesch
Quoted 5 lines · On Wednesday 27 August 2008 16:55:15 Tomas Winkler wrote:

I'm not sure what you are taking about, we did post patches to wireless-testing, the driver for 5000 HW is working in 2.6.27-rc4 I personally use it every day. I'm sending bug fixes, like this seris of patches is direct answer to bugs that were discovered very recently, I'm not sure what's everybody problem here.

The problem is that these patches are posted in huge batches. There are three problems (probably more) with that:
1) "Oh, one of these 15 patches recently merged broke my hw" instead of
"This patch XXX recently merged broke my hw"
2) It's a _lot_ harder to review. I do not have the time to review a lot of patches at once. I bet other people won't either.
3) If somebody has any objections against one patch, you'll probably have to rebase them all (See recent pull request vs cleanups). That's additional work for you.

Quoted 2 lines

What's the problem with sending patches upstream as soon as you finished them, instead of piling them up locally and sending them alltogether?

First of all, mac patches are send immediately to wireless-dev for review just because we don't want to break anyone works (just look at the archives). iwlwifi patches are sent first to internal mailing list for review and internal testing because nobody is really reviewing these patches in wireless-dev and this is common practices (see latest orinoco 19 patches dump) Internal mailing list is really the only place I'm getting any feedback on iwlwifi code, they are few exception of course.
Second I'm not sure why Yi is sending them only once a week I thought he had some agreement with John, really don't know.

Quoted 8 lines
Quoted 4 lines

We fixed bugs in wireless-testing/mac80211 that were there for months just because we are only one that do any comprehensive validation. I don't want insult anyone and I really exaggeration here but sometimes I have feeling that more people are breaking the code.

If you work directly upstream, you will discover these bugs even faster. If you maintain your local fork of mac80211, you will have a delay. But you will have to handle them _anyway_. It's just delayed.

For exact reason we delay patches to 2.6.28, too keep stable.

Quoted 3 lines

And please, don't act like you don't add bugs to mac80211. There were several bugs that broke connections on b43 (and probably other hw, too) in the past.

Not sure what exact patches are you referring to but I do a lot of bugs no doubt and I really test only iwlwifi but we do broad features testing IIRC I did IBSS test with b43 it's broken same way is iwlwifi (look for TSF bug fix)
Thanks
Tomas
--
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

maintainer
#14 lore raw
In reply to Tomas Winkler

From: "Tomas Winkler" <[email protected]>
Date: Wed, 27 Aug 2008 13:05:23 +0300

Quoted 2 lines

There is a central problem here, since I cannot really adjust driver development progress from obvious reason with Linux merging window.

Indeed, that's exactly what your core problem is.

You think it's OK to contaminate upstream just because of the way you have choosen to maintain your driver.

Well guess what, it's not OK to do that, and it's absolutely not our problem that you choose to do your development in the most anti-social way possible wrt. upstream.

Anyways, keep defending yourself.

If you persist, I can certainly make things _really_ easy, such that if there isn't a regression list entry for the bug you are fixing and it isn't mentioned explicitly in your commit message, I simply will refuse to take your changes outside of the merge window.

It's that simple.

Would you like things to work that way, where I'm a hard ass, or would you like to stop defending yourself endlessly, and instead start to be reasonable?

Thanks.
--
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

#15 lore raw
Quoted 11 lines · David Miller

From: "Tomas Winkler" <[email protected]>
Date: Wed, 27 Aug 2008 13:05:23 +0300

Quoted 2 lines

There is a central problem here, since I cannot really adjust driver development progress from obvious reason with Linux merging window.

Indeed, that's exactly what your core problem is.

You think it's OK to contaminate upstream just because of the way you have choosen to maintain your driver.

I don't think I contaminate upstream I'm just trying to fix bugs so people can work with the HW.

Quoted 5 lines

Well guess what, it's not OK to do that, and it's absolutely not our problem that you choose to do your development in the most anti-social way possible wrt. upstream.

Anyways, keep defending yourself.

I'm not defending myself I'm explaining myself.

Quoted 10 lines

If you persist, I can certainly make things _really_ easy, such that if there isn't a regression list entry for the bug you are fixing and it isn't mentioned explicitly in your commit message, I simply will refuse to take your changes outside of the merge window.

It's that simple.

Would you like things to work that way, where I'm a hard ass, or would you like to stop defending yourself endlessly, and instead start to be reasonable?

I'm not sure why you are so militant, you cut out form my email sentences like 'Yes' and 'Understood'
Is this personal ?

Tomas

#16 lore raw
In reply to Tomas Winkler
Quoted 4 lines · On Wed, 27 Aug 2008 13:05:23 +0300 "Tomas Winkler"…

There is a central problem here, since I cannot really adjust driver development progress from obvious reason with Linux merging window. Upstream kernel is unfortunately not the only customer I report to.

yes it is. You really don't have any other customers of this driver... kernel.org kernel is *it*.

(if you're talking about backporting this to distros.. that's the distros problem ;-)

Signature · 7 lines
If you want to reach me at my work email, use arjan-VuQAYsv1563Yd54FQh9/[email protected]
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
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
#17 lore raw
In reply to David Miller
Quoted 7 lines · David Miller

From: "Tomas Winkler" <[email protected]>
Date: Wed, 27 Aug 2008 10:38:56 +0300

Quoted 1 line

Afther massive ath9k merge I didn't see it was a conceptual problem.

Stop right there.

Quoted 8 lines

You don't see it as a problem because you're not the one who has to explain all of this shit to Linus and ends up getting flamed by him when inappropriate changes are in my tree outside of the merge window.

Think for just one second about the people who are upstream from you who have to deal with all of these issues, and not some selfish aspect such as what is convenient and nice for you and your driver, and what other people "got away with".

Don't get excited, this was a cynical remarks rather then anything else. I understand all the aspects of this. Upstream problems are not bigger then down here, Without offense you also see your world from your selfish perspective.
Tomas

maintainer
#18 lore raw
In reply to John W. Linville

From: "John W. Linville" <[email protected]>
Date: Tue, 26 Aug 2008 21:30:10 -0400

Quoted 4 lines

I would appreciate it if we could merge this request as-is. If you are not comfortable with that, then I would ask you to pull from the 'no-iwlwifi' branch instead. In that case, at least we can get the less questionable patches pushed upstream ASAP.

I've pulled the no-iwlwifi branch, thanks John.

#19 lore raw
In reply to John W. Linville
Quoted 2 lines

John W. Linville (1):
mac80211: quiet chatty IBSS merge message

This patch is correct yet it suppresses an important warning, meaning that you have constant IBSS reconnection, remove all connected station and adding them again, This greatly degraded performance. This is caused by inability to adjust to TSF of the IBSS leader

<snipt>
static int ieee80211_sta_join_ibss(struct net_device *dev,

				   struct ieee80211_if_sta *ifsta,
				   struct ieee80211_sta_bss *bss)
.....
/* Remove possible STA entries from other IBSS networks. */
	sta_info_flush_delayed(sdata);

</snip>

Quoted 3 lines

Assaf Krauss (1):
iwlwifi: W/A for the TSF correction in IBSS

This patch fixes this problem in iwlwifi

We've observed same problem with the broadcom card

Tomas

#20 lore raw
Quoted 8 lines · Tomas Winkler
Quoted 2 lines

John W. Linville (1):
mac80211: quiet chatty IBSS merge message

This patch is correct yet it suppresses an important warning, meaning that you have constant IBSS reconnection, remove all connected station and adding them again, This greatly degraded performance. This is caused by inability to adjust to TSF of the IBSS leader

Quoted 8 lines

<snipt>
static int ieee80211_sta_join_ibss(struct net_device *dev,

				   struct ieee80211_if_sta *ifsta,
				   struct ieee80211_sta_bss *bss)
.....
/* Remove possible STA entries from other IBSS networks. */
	sta_info_flush_delayed(sdata);

</snip>

I fail to see how the TSF could be related to an ever reconnecting station. Can you elaborate on what happens?

I was under the impression that the firmware would handle TSF stuff. Also the "IBSS leader" is a new thing to me. I remember from the specs that the device should accept the TSF from _any_ beacon. Not just a "leader". Am I mislead? :)

I also fail to see how we could _ever_ set the TSF to something remotely correct from the driver because of the FIFO delay.

Quoted 3 lines
Quoted 3 lines

Assaf Krauss (1):
iwlwifi: W/A for the TSF correction in IBSS

I cannot find this patch in wireless-testing and I don't
have a copy of wireless-2.6 here. Can you send me the patch, or explain what it does?
--
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

#21 lore raw
Quoted 18 lines · Michael Buesch
Quoted 8 lines · Tomas Winkler
Quoted 2 lines

John W. Linville (1):
mac80211: quiet chatty IBSS merge message

This patch is correct yet it suppresses an important warning, meaning that you have constant IBSS reconnection, remove all connected station and adding them again, This greatly degraded performance. This is caused by inability to adjust to TSF of the IBSS leader

Quoted 8 lines

<snipt>
static int ieee80211_sta_join_ibss(struct net_device *dev,

                                 struct ieee80211_if_sta *ifsta,
                                 struct ieee80211_sta_bss *bss)
.....
/* Remove possible STA entries from other IBSS networks. */
      sta_info_flush_delayed(sdata);

</snip>

Quoted 7 lines

I fail to see how the TSF could be related to an ever reconnecting station. Can you elaborate on what happens?

I was under the impression that the firmware would handle TSF stuff. Also the "IBSS leader" is a new thing to me. I remember from the specs that the device should accept the TSF from _any_ beacon. Not just a "leader". Am I mislead? :)

What is happening that IBSS station should adopt TSF of the oldest station i.e. with highest
TSF. This is also leader of the IBSS (this is not spec definition just local jargon) Adaptation
mean we adjust to the same clock

if (beacon_timestamp > rx_timestamp)
merge

beacon_timestamp (what STA advertise in the beacon ) is bigger then time reception of the beacon according our local TSF. If this is true then there is merging
meaing we call reset_tsf, remove all the stations form the list and
add the leader.

In IBSS all the station race on sending beacon. so adjusting clock is important for power save.

Quoted 3 lines

I also fail to see how we could _ever_ set the TSF to something remotely correct from the driver because of the FIFO delay.

Exactly also iwlwifi driver is not able to really adjust TSF and always lag behind we've really tried to make it work...no success. The result is you are constantly removing and joining the same station.

The patch from Assaf just disable reporting RX timestamp to mac and thus disabling merging which gives incorrect spec behavior but smooth traffic.
Actually we've checked few cards including broadcom and various windows NICs and non of them implements this correctly so this WA is probably the solution.

Other solution would be to mark leader with highest TSF and not reconnecting to the same station again and again.

Last solution would be to remove this merging all together but then I'm not sure if Bruno added this code just implement the spec or really tested it with any hardware. I'm not sure if any vendor implements PS in IBSS so this merging is probably not important anyway.

Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

Assaf Krauss (1):
iwlwifi: W/A for the TSF correction in IBSS

I cannot find this patch in wireless-testing and I don't have a copy of wireless-2.6 here. Can you send me the patch, or explain what it does?

Explained above just disable get_tsf and also report to mac by removing line rx_status.flag |= RX_FLAG_TSFT;

Tomas
--
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

#22 lore raw
Quoted 6 lines · Tomas Winkler

if (beacon_timestamp > rx_timestamp)
merge

The patch from Assaf just disable reporting RX timestamp to mac and thus disabling merging which gives incorrect spec behavior but smooth traffic.

We *should follow the spec*.

Quoted 2 lines

Actually we've checked few cards including broadcom and various windows NICs

What are windows NICs?

Quoted 2 lines

and non of them implements this correctly so this WA is probably the solution.

Disagreed! If there is hardware which is not capable of handling this we should simply have a HW flag which specifies this to handle this as a work around (WA). Just because some cards are not capable it doesn't mean it should impose that on the rest.

Quoted 8 lines

Other solution would be to mark leader with highest TSF and not reconnecting to the same station again and again.

Last solution would be to remove this merging all together but then I'm not sure if Bruno added this code just implement the spec or really tested it with any hardware. I'm not sure if any vendor implements PS in IBSS so this merging is probably not important anyway.

Absolutely not! IBSS merge is per spec, otherwise you don't really have a real IBSS.

Luis
--
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

#23 lore raw
Quoted 9 lines · Luis R. Rodriguez
Quoted 6 lines · Tomas Winkler

if (beacon_timestamp > rx_timestamp)
merge

The patch from Assaf just disable reporting RX timestamp to mac and thus disabling merging which gives incorrect spec behavior but smooth traffic.

We *should follow the spec*.

I prefer to be able transfer files over blindly following spec. This doesn't really break interoperability in practice.

Quoted 5 lines
Quoted 2 lines

Actually we've checked few cards including broadcom and various windows NICs

What are windows NICs?

Quoted 7 lines
Quoted 2 lines

and non of them implements this correctly so this WA is probably the solution.

Disagreed! If there is hardware which is not capable of handling this we should simply have a HW flag which specifies this to handle this as a work around (WA). Just because some cards are not capable it doesn't mean it should impose that on the rest.

This is w/a in the specific driver not in the mac so this is de facto what you have suggested. This patch is marked as W/A and should have probably
some cleaner solution in 2.6.28

Quoted 11 lines
Quoted 8 lines

Other solution would be to mark leader with highest TSF and not reconnecting to the same station again and again.

Last solution would be to remove this merging all together but then I'm not sure if Bruno added this code just implement the spec or really tested it with any hardware. I'm not sure if any vendor implements PS in IBSS so this merging is probably not important anyway.

Absolutely not! IBSS merge is per spec, otherwise you don't really have a real IBSS.

I'm all for following spec and we've tried really hard to make it work. Anyhow I'm not sure what you call real IBSS. nobody has checked it for 1.5 year this patch is in and now is suddenly so important... b43 was effected and probably also something that John worked with (as he issued his anti-chatty patch)
I would like to see if there is any HW under mac80211 that actually work with this.

Tomas

Quoted 2 lines

Luis

#24 lore raw
Quoted 2 lines · Tomas Winkler

This patch is marked as W/A and should have
probably some cleaner solution in 2.6.28

OK

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Last solution would be to remove this merging all together

Absolutely not! IBSS merge is per spec, otherwise you don't really have a real IBSS.

I'm all for following spec and we've tried really hard to make it work. Anyhow I'm not sure what you call real IBSS. nobody has checked it for 1.5 year this patch is in and now is suddenly so important...

I don't care about your work around, I was replying due to your insane comments about considering removing IBSS merge support because your hardware does not support it well.

Quoted 2 lines

I would like to see if there is any HW under mac80211 that actually work with this.

Atheros hardware supports IBSS merge, please consider a proper work around instead for hardware which does not support this.

Luis
--
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

#25 lore raw
Quoted 11 lines · Luis R. Rodriguez
Quoted 2 lines · Tomas Winkler

This patch is marked as W/A and should have
probably some cleaner solution in 2.6.28

OK

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

Last solution would be to remove this merging all together

Absolutely not! IBSS merge is per spec, otherwise you don't really have a real IBSS.

Quoted 7 lines
Quoted 3 lines

I'm all for following spec and we've tried really hard to make it work. Anyhow I'm not sure what you call real IBSS. nobody has checked it for 1.5 year this patch is in and now is suddenly so important...

I don't care about your work around, I was replying due to your insane comments about considering removing IBSS merge support because your hardware does not support it well.

Insane?!, watch your language mister I will catch you on next year OLS :) This is definitely
not any highlighted proposal in my message

Quoted 5 lines
Quoted 2 lines

I would like to see if there is any HW under mac80211 that actually work with this.

Atheros hardware supports IBSS merge, please consider a proper work around instead for hardware which does not support this.

So how do set TSF from the beacon, I'm asking because there is currently no interface from mac80211 to driver do that.
Thanks
Tomas
--
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

#26 lore raw
In reply to Luis R. Rodriguez
Quoted 3 lines · Tomas Winkler

Last solution would be to remove this merging all together but then I'm not sure if Bruno added this code just implement the spec or really tested it with any hardware.

of course i tested IBSS merge with atheros hardware when i sent in the patch and it worked. this is about 6 month ago. recently i briefly tested IBSS, with the same HW but it did not work any more - i didn't have the time to investigate this issue...

please remember that there was a lengthy discussion about the standard compliance and the reasons behind the need for IBSS merge before my patch was accepted. i believe i had convincing arguments why IBSS mode does not reliably work at all in practice if we don't support IBSS merge.

you might want to re-read this thread:
http://thread.gmane.org/gmane.linux.kernel.wireless.general/10278

greetings,
bruno
--
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

#27 lore raw
Quoted 7 lines · Bruno Randolf
Quoted 3 lines · Tomas Winkler

Last solution would be to remove this merging all together but then I'm not sure if Bruno added this code just implement the spec or really tested it with any hardware.

of course i tested IBSS merge with atheros hardware when i sent in the patch and it worked. this is about 6 month ago.

recently i briefly tested IBSS,

Do you know how the TSF is actually synchronized from the HW perspective?

Quoted 2 lines

with the same HW but it did not work any more - i didn't have the time to investigate this issue...

There is another IBSS bug that was introduced connected to rates maybe this is also your problem.. we have something in the pipe that should solve this.

Quoted 4 lines

please remember that there was a lengthy discussion about the standard compliance and the reasons behind the need for IBSS merge before my patch was accepted. i believe i had convincing arguments why IBSS mode does not reliably work at all in practice if we don't support IBSS merge.

Sure but if TSF is not adopted correctly and that's the case probably of most of the drivers under mac80211 then it makes
worth. Just need to be aware of this.

Quoted 3 lines

you might want to re-read this thread:
http://thread.gmane.org/gmane.linux.kernel.wireless.general/10278

Thanks
Tomas

#28 lore raw
Quoted 1 line · On Thursday 28 August 2008 12:52:36 Tomas Winkler wrote:

Do you know how the TSF is actually synchronized from the HW perspective?

no, unfortuately i have no idea. also i should admit that we have problems with atheros hardware in that we don't know when the RX timestamp is taken exactly. this means our IBSS merge can't be 100% exact. but the usual case we need to catch is when the beacon TSF is much higher than the local TSF.

i don't care about IBSS power-save right now.

Quoted 6 lines
Quoted 2 lines

with the same HW but it did not work any more - i didn't have the time to investigate this issue...

There is another IBSS bug that was introduced connected to rates maybe this is also your problem.. we have something in the pipe that should solve this.

good, i'll retest once you subitted the patch.

Quoted 3 lines

Sure but if TSF is not adopted correctly and that's the case probably of most of the drivers under mac80211 then it makes
worth. Just need to be aware of this.

true, we need to find a way to support this hardware too...

bruno

--
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

#29 lore raw
In reply to Tomas Winkler
Quoted 27 lines · Tomas Winkler
Quoted 18 lines · Michael Buesch
Quoted 8 lines · Tomas Winkler
Quoted 2 lines

John W. Linville (1):
mac80211: quiet chatty IBSS merge message

This patch is correct yet it suppresses an important warning, meaning that you have constant IBSS reconnection, remove all connected station and adding them again, This greatly degraded performance. This is caused by inability to adjust to TSF of the IBSS leader

Quoted 8 lines

<snipt>
static int ieee80211_sta_join_ibss(struct net_device *dev,

                                 struct ieee80211_if_sta *ifsta,
                                 struct ieee80211_sta_bss *bss)
.....
/* Remove possible STA entries from other IBSS networks. */
      sta_info_flush_delayed(sdata);

</snip>

Quoted 7 lines

I fail to see how the TSF could be related to an ever reconnecting station. Can you elaborate on what happens?

I was under the impression that the firmware would handle TSF stuff. Also the "IBSS leader" is a new thing to me. I remember from the specs that the device should accept the TSF from _any_ beacon. Not just a "leader". Am I mislead? :)

Quoted 8 lines

What is happening that IBSS station should adopt TSF of the oldest station i.e. with highest
TSF. This is also leader of the IBSS (this is not spec definition just local jargon) Adaptation
mean we adjust to the same clock

if (beacon_timestamp > rx_timestamp)
merge

Well, I was pretty sure the firmware did this for us. I can recheck that later.

In any case, I will accept patches that are _well_ _tested_ to workaround this issue. I don't have the time work work on IBSS by myself. My pile already is big enough. :)
--
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

#30 lore raw
Quoted 34 lines · Michael Buesch
Quoted 33 lines · Tomas Winkler
Quoted 18 lines · Michael Buesch
Quoted 8 lines · Tomas Winkler
Quoted 2 lines

John W. Linville (1):
mac80211: quiet chatty IBSS merge message

This patch is correct yet it suppresses an important warning, meaning that you have constant IBSS reconnection, remove all connected station and adding them again, This greatly degraded performance. This is caused by inability to adjust to TSF of the IBSS leader

Quoted 8 lines

<snipt>
static int ieee80211_sta_join_ibss(struct net_device *dev,

                                 struct ieee80211_if_sta *ifsta,
                                 struct ieee80211_sta_bss *bss)
.....
/* Remove possible STA entries from other IBSS networks. */
      sta_info_flush_delayed(sdata);

</snip>

Quoted 7 lines

I fail to see how the TSF could be related to an ever reconnecting station. Can you elaborate on what happens?

I was under the impression that the firmware would handle TSF stuff. Also the "IBSS leader" is a new thing to me. I remember from the specs that the device should accept the TSF from _any_ beacon. Not just a "leader". Am I mislead? :)

What is happening that IBSS station should adopt TSF of the oldest station i.e. with highest
TSF. This is also leader of the IBSS (this is not spec definition just local jargon) Adaptation
mean we adjust to the same clock

Quoted 5 lines
Quoted 2 lines

if (beacon_timestamp > rx_timestamp)
merge

Well, I was pretty sure the firmware did this for us. I can recheck that later.

Other option might that rx_timestamp is just not computed correctly for your HW in the first place and then this code is triggered in the mac.
Tomas