update for 2.6.38
cover update for 2.6.38
We give the offical name to the latest Intel WiFI devices We also fix number of P2P performance related issues
Johannes Berg (4):
iwlagn: remove powersave warning
iwlagn: fix station powersave accounting for aggregation
iwlagn: advertise reliable TX status
iwlwifi: use mac80211 AC defines
Wey-Yi Guy (8):
iwlwifi: remove unused define
iwlwifi: use antenna information in EEPROM
iwlagn: Offical name for 6050g2 device
iwlagn: Offical name for 6000g2a device
iwlagn: Offical name for 6000g2b device
iwlagn: Offical name for 100/130 device
iwlagn: use different kill mask when SCO active
iwlagn: minor change in bt coex normal LUT
these patches are also available from wireless-next-2.6 branch on
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-2.6.git
drivers/net/wireless/iwlwifi/iwl-1000.c | 12 +---- drivers/net/wireless/iwlwifi/iwl-4965.c | 2 - drivers/net/wireless/iwlwifi/iwl-5000.c | 20 ++----- drivers/net/wireless/iwlwifi/iwl-6000.c | 66 +++++++------------------ drivers/net/wireless/iwlwifi/iwl-agn-eeprom.c | 20 ++++++++ drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 34 ++++++++----- drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 45 +++++++++++++---- drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | 24 +++++----- drivers/net/wireless/iwlwifi/iwl-agn.c | 3 +- drivers/net/wireless/iwlwifi/iwl-commands.h | 1 + drivers/net/wireless/iwlwifi/iwl-eeprom.h | 1 - 11 files changed, 116 insertions(+), 112 deletions(-)
PATCH 1/12 iwlwifi: remove unused define
was not used, remove it
--- drivers/net/wireless/iwlwifi/iwl-eeprom.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl-eeprom.h +0 -1
@@ -410,7 +410,6 @@ struct iwl_eeprom_calib_info {#define EEPROM_OEM_MODE (2*0x46)/* 2 bytes */ #define EEPROM_WOWLAN_MODE (2*0x47)/* 2 bytes */ #define EEPROM_RADIO_CONFIG (2*0x48)/* 2 bytes */ -#define EEPROM_3945_M_VERSION (2*0x4A)/* 1 bytes */ #define EEPROM_NUM_MAC_ADDRESS (2*0x4C)/* 2 bytes */ /* The following masks are to be applied on EEPROM_RADIO_CONFIG */
Signature · 1 line
1.7.0.4
PATCH 2/12 iwlwifi: use antenna information in EEPROM
In reply to Wey-Yi GuyThe valid tx/rx antenna information is part of EEPROM, so use it to configure the device.
For few cases, the EEPROM did not reflect the correct antenna, but it is too late to modify the EEPROM, so overwrite with .cfg parameters
--- drivers/net/wireless/iwlwifi/iwl-1000.c | 8 ----- drivers/net/wireless/iwlwifi/iwl-4965.c | 2 - drivers/net/wireless/iwlwifi/iwl-5000.c | 20 +++-------- drivers/net/wireless/iwlwifi/iwl-6000.c | 42 +++--------------------- drivers/net/wireless/iwlwifi/iwl-agn-eeprom.c | 20 ++++++++++++ 5 files changed, 32 insertions(+), 60 deletions(-)
drivers/net/wireless/iwlwifi/iwl-1000.c +0 -8
@@ -278,8 +278,6 @@ struct iwl_cfg iwl1000_bgn_cfg = { .fw_name_pre = IWL1000_FW_PRE, .ucode_api_max = IWL1000_UCODE_API_MAX, .ucode_api_min = IWL1000_UCODE_API_MIN, - .valid_tx_ant = ANT_A, - .valid_rx_ant = ANT_AB, .eeprom_ver = EEPROM_1000_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, .ops = &iwl1000_ops,
@@ -294,8 +292,6 @@ struct iwl_cfg iwl1000_bg_cfg = { .fw_name_pre = IWL1000_FW_PRE, .ucode_api_max = IWL1000_UCODE_API_MAX, .ucode_api_min = IWL1000_UCODE_API_MIN, - .valid_tx_ant = ANT_A, - .valid_rx_ant = ANT_AB, .eeprom_ver = EEPROM_1000_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, .ops = &iwl1000_ops,
@@ -309,8 +305,6 @@ struct iwl_cfg iwl100_bgn_cfg = { .fw_name_pre = IWL100_FW_PRE, .ucode_api_max = IWL100_UCODE_API_MAX, .ucode_api_min = IWL100_UCODE_API_MIN, - .valid_tx_ant = ANT_A, - .valid_rx_ant = ANT_A, .eeprom_ver = EEPROM_1000_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, .ops = &iwl1000_ops,
@@ -325,8 +319,6 @@ struct iwl_cfg iwl100_bg_cfg = { .fw_name_pre = IWL100_FW_PRE, .ucode_api_max = IWL100_UCODE_API_MAX, .ucode_api_min = IWL100_UCODE_API_MIN, - .valid_tx_ant = ANT_A, - .valid_rx_ant = ANT_A, .eeprom_ver = EEPROM_1000_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, .ops = &iwl1000_ops,
drivers/net/wireless/iwlwifi/iwl-4965.c +0 -2
@@ -2624,8 +2624,6 @@ struct iwl_cfg iwl4965_agn_cfg = { .fw_name_pre = IWL4965_FW_PRE, .ucode_api_max = IWL4965_UCODE_API_MAX, .ucode_api_min = IWL4965_UCODE_API_MIN, - .valid_tx_ant = ANT_AB, - .valid_rx_ant = ANT_ABC, .eeprom_ver = EEPROM_4965_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_4965_TX_POWER_VERSION, .ops = &iwl4965_ops,
drivers/net/wireless/iwlwifi/iwl-5000.c +6 -14
@@ -527,8 +527,6 @@ struct iwl_cfg iwl5300_agn_cfg = { .fw_name_pre = IWL5000_FW_PRE, .ucode_api_max = IWL5000_UCODE_API_MAX, .ucode_api_min = IWL5000_UCODE_API_MIN, - .valid_tx_ant = ANT_ABC, - .valid_rx_ant = ANT_ABC, .eeprom_ver = EEPROM_5000_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, .ops = &iwl5000_ops,
@@ -543,8 +541,8 @@ struct iwl_cfg iwl5100_bgn_cfg = { .fw_name_pre = IWL5000_FW_PRE, .ucode_api_max = IWL5000_UCODE_API_MAX, .ucode_api_min = IWL5000_UCODE_API_MIN, - .valid_tx_ant = ANT_B, - .valid_rx_ant = ANT_AB, + .valid_tx_ant = ANT_B, /* .cfg overwrite */ + .valid_rx_ant = ANT_AB, /* .cfg overwrite */ .eeprom_ver = EEPROM_5000_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, .ops = &iwl5000_ops,
@@ -559,8 +557,8 @@ struct iwl_cfg iwl5100_abg_cfg = { .fw_name_pre = IWL5000_FW_PRE, .ucode_api_max = IWL5000_UCODE_API_MAX, .ucode_api_min = IWL5000_UCODE_API_MIN, - .valid_tx_ant = ANT_B, - .valid_rx_ant = ANT_AB, + .valid_tx_ant = ANT_B, /* .cfg overwrite */ + .valid_rx_ant = ANT_AB, /* .cfg overwrite */ .eeprom_ver = EEPROM_5000_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, .ops = &iwl5000_ops,
@@ -574,8 +572,8 @@ struct iwl_cfg iwl5100_agn_cfg = { .fw_name_pre = IWL5000_FW_PRE, .ucode_api_max = IWL5000_UCODE_API_MAX, .ucode_api_min = IWL5000_UCODE_API_MIN, - .valid_tx_ant = ANT_B, - .valid_rx_ant = ANT_AB, + .valid_tx_ant = ANT_B, /* .cfg overwrite */ + .valid_rx_ant = ANT_AB, /* .cfg overwrite */ .eeprom_ver = EEPROM_5000_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, .ops = &iwl5000_ops,
@@ -590,8 +588,6 @@ struct iwl_cfg iwl5350_agn_cfg = { .fw_name_pre = IWL5000_FW_PRE, .ucode_api_max = IWL5000_UCODE_API_MAX, .ucode_api_min = IWL5000_UCODE_API_MIN, - .valid_tx_ant = ANT_ABC, - .valid_rx_ant = ANT_ABC, .eeprom_ver = EEPROM_5050_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, .ops = &iwl5000_ops,
@@ -606,8 +602,6 @@ struct iwl_cfg iwl5150_agn_cfg = { .fw_name_pre = IWL5150_FW_PRE, .ucode_api_max = IWL5150_UCODE_API_MAX, .ucode_api_min = IWL5150_UCODE_API_MIN, - .valid_tx_ant = ANT_A, - .valid_rx_ant = ANT_AB, .eeprom_ver = EEPROM_5050_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, .ops = &iwl5150_ops,
@@ -623,8 +617,6 @@ struct iwl_cfg iwl5150_abg_cfg = { .fw_name_pre = IWL5150_FW_PRE, .ucode_api_max = IWL5150_UCODE_API_MAX, .ucode_api_min = IWL5150_UCODE_API_MIN, - .valid_tx_ant = ANT_A, - .valid_rx_ant = ANT_AB, .eeprom_ver = EEPROM_5050_EEPROM_VERSION, .eeprom_calib_ver = EEPROM_5050_TX_POWER_VERSION, .ops = &iwl5150_ops,
drivers/net/wireless/iwlwifi/iwl-6000.c +6 -36
150 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-agn-eeprom.c +20 -0
@@ -251,6 +251,7 @@ err:int iwl_eeprom_check_sku (struct iwl_priv *priv) {u16 eeprom_sku; +u16 radio_cfg; eeprom_sku =iwl_eeprom_query16 (priv,EEPROM_SKU_CAP );
@@ -266,6 +267,25 @@ int iwl_eeprom_check_sku(struct iwl_priv *priv)IWL_INFO (priv,"Device SKU: 0X%x\n" , priv->cfg->sku); +if (!priv->cfg->valid_tx_ant && !priv->cfg->valid_rx_ant) { +/* not using .cfg overwrite */ + radio_cfg =iwl_eeprom_query16 (priv,EEPROM_RADIO_CONFIG ); + priv->cfg->valid_tx_ant =EEPROM_RF_CFG_TX_ANT_MSK (radio_cfg); + priv->cfg->valid_rx_ant =EEPROM_RF_CFG_TX_ANT_MSK (radio_cfg); +if (!priv->cfg->valid_tx_ant || !priv->cfg->valid_rx_ant) { +IWL_ERR (priv,"Invalid chain (0X%x, 0X%x)\n" , + priv->cfg->valid_tx_ant, + priv->cfg->valid_rx_ant); +return -EINVAL ; + } +IWL_INFO (priv,"Valid Tx ant: 0X%x, Valid Rx ant: 0X%x\n" , + priv->cfg->valid_tx_ant, priv->cfg->valid_rx_ant); + } +/* +* for some special cases, +* EEPROM did not reflect the correct antenna setting +* so overwrite the valid tx/rx antenna from .cfg +*/ return 0 ; }
Signature · 1 line
1.7.0.4
PATCH 3/12 iwlagn: remove powersave warning
In reply to Wey-Yi GuyFrom: Johannes Berg <[email protected]>
Through races, a packet may be enqueued for transmission to a station while that station is going to sleep, in which case the warning here triggers. Instead of warning, check the condition -- if this packet is not a PS-poll response then we still enqueue it but it will be rejected by the device since the station is marked as asleep.
--- drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/iwlwifi/iwl-agn-tx.c +2 -2
@@ -567,8 +567,8 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)if (sta) sta_priv = (void *)sta->drv_priv; -if (sta_priv && sta_priv->asleep) { -WARN_ON (!(info->flags &IEEE80211_TX_CTL_PSPOLL_RESPONSE )); +if (sta_priv && sta_priv->asleep && + (info->flags &IEEE80211_TX_CTL_PSPOLL_RESPONSE )) {/* * This sends an asynchronous command to the device, * but we can rely on it being processed before the
Signature · 1 line
1.7.0.4
PATCH 4/12 iwlagn: fix station powersave accounting for aggregation
In reply to Wey-Yi GuyFrom: Johannes Berg <[email protected]>
Since aggregation queues are station-specific, the device will not reject packets in them but rather will stop the appropriate aggregation queues when a station goes to sleep. I forgot to account for this in the driver, so if a station went to sleep that had aggregation enabled, traffic would stop indefinitely.
Fix this by only accounting frames queued on the normal AC queues for associated station.
--- drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 31 +++++++++++++++++++++++----- 1 files changed, 25 insertions(+), 6 deletions(-)
drivers/net/wireless/iwlwifi/iwl-agn-tx.c +25 -6
@@ -531,6 +531,7 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)u8 tid =0 ;u8 *qc =NULL ;unsigned long flags; +bool is_agg = false;if (info->control.vif) ctx =iwl_rxon_ctx_from_vif (info->control.vif);
@@ -616,6 +617,7 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)if (info->flags &IEEE80211_TX_CTL_AMPDU && priv->stations[sta_id].tid[tid].agg.state ==IWL_AGG_ON ) { txq_id = priv->stations[sta_id].tid[tid].agg.txq_id; + is_agg = true; } }
@@ -763,8 +765,14 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)* whether or not we should update the write pointer. */ -/* avoid atomic ops if it isn't an associated client */ -if (sta_priv && sta_priv->client) +/* +* Avoid atomic ops if it isn't an associated client. +* Also, if this is a packet for aggregation, don't +* increase the counter because the ucode will stop +* aggregation queues when their respective station +* goes to sleep. +*/ +if (sta_priv && sta_priv->client && !is_agg)atomic_inc (&sta_priv->pending_frames);if ((iwl_queue_space (q) < q->high_mark) && priv->mac80211_registered) {
@@ -1143,14 +1151,15 @@ int iwlagn_txq_check_empty(struct iwl_priv *priv,return 0 ; } -static void iwlagn_tx_status (struct iwl_priv *priv,struct iwl_tx_info *tx_info) +static void iwlagn_non_agg_tx_status (struct iwl_priv *priv, +struct iwl_rxon_context *ctx, +const u8 *addr1) { -struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) tx_info->skb->data;struct ieee80211_sta *sta;struct iwl_station_priv *sta_priv;rcu_read_lock (); - sta =ieee80211_find_sta (tx_info->ctx->vif, hdr->addr1); + sta =ieee80211_find_sta (ctx->vif, addr1);if (sta) { sta_priv = (void *)sta->drv_priv;/* avoid atomic ops if this isn't a client */
@@ -1159,6 +1168,15 @@ static void iwlagn_tx_status(struct iwl_priv *priv, struct iwl_tx_info *tx_info)ieee80211_sta_block_awake (priv->hw, sta, false); }rcu_read_unlock (); +} + +static void iwlagn_tx_status (struct iwl_priv *priv,struct iwl_tx_info *tx_info, +bool is_agg) +{ +struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) tx_info->skb->data; + +if (!is_agg) +iwlagn_non_agg_tx_status (priv, tx_info->ctx, hdr->addr1);ieee80211_tx_status_irqsafe (priv->hw, tx_info->skb); }
@@ -1183,7 +1201,8 @@ int iwlagn_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index) q->read_ptr = iwl_queue_inc_wrap(q->read_ptr, q->n_bd)) { tx_info = &txq->txb[txq->q.read_ptr]; -iwlagn_tx_status (priv, tx_info); +iwlagn_tx_status (priv, tx_info, + txq_id >=IWLAGN_FIRST_AMPDU_QUEUE ); hdr = (struct ieee80211_hdr *)tx_info->skb->data;if (hdr &&ieee80211_is_data_qos (hdr->frame_control))
Signature · 1 line
1.7.0.4
PATCH 8/12 iwlagn: Offical name for 6000g2a device
In reply to Wey-Yi GuyChange to offical name for 6000g2a devices:
"Intel(R) Centrino(R) Advanced-N 6205"
--- drivers/net/wireless/iwlwifi/iwl-6000.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/wireless/iwlwifi/iwl-6000.c +3 -3
@@ -553,7 +553,7 @@ static struct iwl_bt_params iwl6000_bt_params = { };struct iwl_cfg iwl6000g2a_2agn_cfg = { - .name ="6000 Series 2x2 AGN Gen2a" , + .name ="Intel(R) Centrino(R) Advanced-N 6205 AGN" , .fw_name_pre =IWL6000G2A_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
@@ -569,7 +569,7 @@ struct iwl_cfg iwl6000g2a_2agn_cfg = { };struct iwl_cfg iwl6000g2a_2abg_cfg = { - .name ="6000 Series 2x2 ABG Gen2a" , + .name ="Intel(R) Centrino(R) Advanced-N 6205 ABG" , .fw_name_pre =IWL6000G2A_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
@@ -584,7 +584,7 @@ struct iwl_cfg iwl6000g2a_2abg_cfg = { };struct iwl_cfg iwl6000g2a_2bg_cfg = { - .name ="6000 Series 2x2 BG Gen2a" , + .name ="Intel(R) Centrino(R) Advanced-N 6205 BG" , .fw_name_pre =IWL6000G2A_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
Signature · 1 line
1.7.0.4
PATCH 5/12 iwlagn: advertise reliable TX status
In reply to Wey-Yi GuyFrom: Johannes Berg <[email protected]>
Our hardware has reliable TX status, but we're not currently advertising that to mac80211. Since the packet loss monitoring will depend on it, advertise it.
--- drivers/net/wireless/iwlwifi/iwl-agn.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl-agn.c +2 -1
@@ -3175,7 +3175,8 @@ static int iwl_mac_setup_register(struct iwl_priv *priv, hw->flags =IEEE80211_HW_SIGNAL_DBM |IEEE80211_HW_AMPDU_AGGREGATION |IEEE80211_HW_NEED_DTIM_PERIOD | -IEEE80211_HW_SPECTRUM_MGMT ; +IEEE80211_HW_SPECTRUM_MGMT | +IEEE80211_HW_REPORTS_TX_ACK_STATUS ;if (!priv->cfg->base_params->broken_powersave) hw->flags |= IEEE80211_HW_SUPPORTS_PS |
Signature · 1 line
1.7.0.4
PATCH 6/12 iwlwifi: use mac80211 AC defines
In reply to Wey-Yi GuyFrom: Johannes Berg <[email protected]>
Instead of hardcoding the numbers that must match mac80211, use the constants. Not that this means we could change the constants,
but at least this way it's clearer.
--- drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 10 ++++++++-- drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | 24 ++++++++++++------------ 2 files changed, 20 insertions(+), 14 deletions(-)
drivers/net/wireless/iwlwifi/iwl-agn-tx.c +8 -2
@@ -67,8 +67,14 @@*/ static const u8 tid_to_ac[] = { -/* this matches the mac80211 numbers */ -2 ,3 ,3 ,2 ,1 ,1 ,0 ,0 +IEEE80211_AC_BE , +IEEE80211_AC_BK , +IEEE80211_AC_BK , +IEEE80211_AC_BE , +IEEE80211_AC_VI , +IEEE80211_AC_VI , +IEEE80211_AC_VO , +IEEE80211_AC_VO };static inline int get_ac_from_tid (u16 tid)
drivers/net/wireless/iwlwifi/iwl-agn-ucode.c +12 -12
@@ -47,10 +47,10 @@ struct queue_to_fifo_ac { };static const struct queue_to_fifo_ac iwlagn_default_queue_to_tx_fifo[] = { - {IWL_TX_FIFO_VO ,0 , }, - {IWL_TX_FIFO_VI ,1 , }, - {IWL_TX_FIFO_BE ,2 , }, - {IWL_TX_FIFO_BK ,3 , }, + {IWL_TX_FIFO_VO ,IEEE80211_AC_VO , }, + {IWL_TX_FIFO_VI ,IEEE80211_AC_VI , }, + {IWL_TX_FIFO_BE ,IEEE80211_AC_BE , }, + {IWL_TX_FIFO_BK ,IEEE80211_AC_BK , }, {IWLAGN_CMD_FIFO_NUM ,IWL_AC_UNSET , }, {IWL_TX_FIFO_UNUSED ,IWL_AC_UNSET , }, {IWL_TX_FIFO_UNUSED ,IWL_AC_UNSET , },
@@ -60,14 +60,14 @@ static const struct queue_to_fifo_ac iwlagn_default_queue_to_tx_fifo[] = { };static const struct queue_to_fifo_ac iwlagn_ipan_queue_to_tx_fifo[] = { - {IWL_TX_FIFO_VO ,0 , }, - {IWL_TX_FIFO_VI ,1 , }, - {IWL_TX_FIFO_BE ,2 , }, - {IWL_TX_FIFO_BK ,3 , }, - {IWL_TX_FIFO_BK_IPAN ,3 , }, - {IWL_TX_FIFO_BE_IPAN ,2 , }, - {IWL_TX_FIFO_VI_IPAN ,1 , }, - {IWL_TX_FIFO_VO_IPAN ,0 , }, + {IWL_TX_FIFO_VO ,IEEE80211_AC_VO , }, + {IWL_TX_FIFO_VI ,IEEE80211_AC_VI , }, + {IWL_TX_FIFO_BE ,IEEE80211_AC_BE , }, + {IWL_TX_FIFO_BK ,IEEE80211_AC_BK , }, + {IWL_TX_FIFO_BK_IPAN ,IEEE80211_AC_BK , }, + {IWL_TX_FIFO_BE_IPAN ,IEEE80211_AC_BE , }, + {IWL_TX_FIFO_VI_IPAN ,IEEE80211_AC_VI , }, + {IWL_TX_FIFO_VO_IPAN ,IEEE80211_AC_VO , }, {IWL_TX_FIFO_BE_IPAN ,2 , }, {IWLAGN_CMD_FIFO_NUM ,IWL_AC_UNSET , }, };
Signature · 1 line
1.7.0.4
PATCH 7/12 iwlagn: Offical name for 6050g2 device
In reply to Wey-Yi GuyChange to offical name for 6050g2 devices:
"Intel(R) Centrino(R) Wireless-N 6150"
--- drivers/net/wireless/iwlwifi/iwl-6000.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl-6000.c +1 -1
@@ -783,7 +783,7 @@ struct iwl_cfg iwl6050_2agn_cfg = { };struct iwl_cfg iwl6050g2_bgn_cfg = { - .name ="6050 Series 1x2 BGN Gen2" , + .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 ,
Signature · 1 line
1.7.0.4
PATCH 9/12 iwlagn: Offical name for 6000g2b device
In reply to Wey-Yi GuyChange to offical name for 6000g2b devices:
"Intel(R) Centrino(R) Wireless-N 1030"
"Intel(R) Centrino(R) Advanced-N 6230"
--- drivers/net/wireless/iwlwifi/iwl-6000.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
drivers/net/wireless/iwlwifi/iwl-6000.c +6 -6
@@ -599,7 +599,7 @@ struct iwl_cfg iwl6000g2a_2bg_cfg = { };struct iwl_cfg iwl6000g2b_2agn_cfg = { - .name ="6000 Series 2x2 AGN Gen2b" , + .name ="Intel(R) Centrino(R) Advanced-N 6230 AGN" , .fw_name_pre =IWL6000G2B_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
@@ -619,7 +619,7 @@ struct iwl_cfg iwl6000g2b_2agn_cfg = { };struct iwl_cfg iwl6000g2b_2abg_cfg = { - .name ="6000 Series 2x2 ABG Gen2b" , + .name ="Intel(R) Centrino(R) Advanced-N 6230 ABG" , .fw_name_pre =IWL6000G2B_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
@@ -638,7 +638,7 @@ struct iwl_cfg iwl6000g2b_2abg_cfg = { };struct iwl_cfg iwl6000g2b_2bgn_cfg = { - .name ="6000 Series 2x2 BGN Gen2b" , + .name ="Intel(R) Centrino(R) Advanced-N 6230 BGN" , .fw_name_pre =IWL6000G2B_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
@@ -658,7 +658,7 @@ struct iwl_cfg iwl6000g2b_2bgn_cfg = { };struct iwl_cfg iwl6000g2b_2bg_cfg = { - .name ="6000 Series 2x2 BG Gen2b" , + .name ="Intel(R) Centrino(R) Advanced-N 6230 BG" , .fw_name_pre =IWL6000G2B_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
@@ -677,7 +677,7 @@ struct iwl_cfg iwl6000g2b_2bg_cfg = { };struct iwl_cfg iwl6000g2b_bgn_cfg = { - .name ="6000 Series 1x2 BGN Gen2b" , + .name ="Intel(R) Centrino(R) Wireless-N 1030 BGN" , .fw_name_pre =IWL6000G2B_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
@@ -697,7 +697,7 @@ struct iwl_cfg iwl6000g2b_bgn_cfg = { };struct iwl_cfg iwl6000g2b_bg_cfg = { - .name ="6000 Series 1x2 BG Gen2b" , + .name ="Intel(R) Centrino(R) Wireless-N 1030 BG" , .fw_name_pre =IWL6000G2B_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
Signature · 1 line
1.7.0.4
PATCH 11/12 iwlagn: use different kill mask when SCO active
In reply to Wey-Yi Guyuse different kill_ack_mask and kill_cts_mask when detect SCO is active.
--- drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 32 ++++++++++++++++----------- drivers/net/wireless/iwlwifi/iwl-commands.h | 1 + 2 files changed, 20 insertions(+), 13 deletions(-)
drivers/net/wireless/iwlwifi/iwl-agn-lib.c +19 -13
@@ -1814,6 +1814,7 @@ void iwlagn_send_advance_bt_config(struct iwl_priv *priv) bt_cmd.prio_boost =0 ; bt_cmd.kill_ack_mask = priv->kill_ack_mask; bt_cmd.kill_cts_mask = priv->kill_cts_mask; + bt_cmd.valid = priv->bt_valid; bt_cmd.tx_prio_boost =0 ; bt_cmd.rx_prio_boost =0 ;
@@ -1996,24 +1997,29 @@ static void iwlagn_print_uartmsg(struct iwl_priv *priv, BT_UART_MSG_FRAME7CONNECTABLE_POS); } -static void iwlagn_set_kill_ack_msk (struct iwl_priv *priv, -struct iwl_bt_uart_msg *uart_msg) +static void iwlagn_set_kill_msk (struct iwl_priv *priv, +struct iwl_bt_uart_msg *uart_msg) { -u8 kill_ack_msk; +u8 kill_msk;static const __le32 bt_kill_ack_msg[2 ] = { -cpu_to_le32 (0xFFFFFFF ),cpu_to_le32 (0xFFFFFC00 ) }; - - kill_ack_msk = (((BT_UART_MSG_FRAME3A2DP_MSK | -BT_UART_MSG_FRAME3SNIFF_MSK | -BT_UART_MSG_FRAME3SCOESCO_MSK ) & - uart_msg->frame3) ==0 ) ?1 :0 ; -if (priv->kill_ack_mask != bt_kill_ack_msg[kill_ack_msk]) { +IWLAGN_BT_KILL_ACK_MASK_DEFAULT , +IWLAGN_BT_KILL_ACK_CTS_MASK_SCO }; +static const __le32 bt_kill_cts_msg[2 ] = { +IWLAGN_BT_KILL_CTS_MASK_DEFAULT , +IWLAGN_BT_KILL_ACK_CTS_MASK_SCO }; + + kill_msk = (BT_UART_MSG_FRAME3SCOESCO_MSK & uart_msg->frame3) + ?1 :0 ; +if (priv->kill_ack_mask != bt_kill_ack_msg[kill_msk] || + priv->kill_cts_mask != bt_kill_cts_msg[kill_msk]) { priv->bt_valid |=IWLAGN_BT_VALID_KILL_ACK_MASK ; - priv->kill_ack_mask = bt_kill_ack_msg[kill_ack_msk]; + priv->kill_ack_mask = bt_kill_ack_msg[kill_msk]; + priv->bt_valid |=IWLAGN_BT_VALID_KILL_CTS_MASK ; + priv->kill_cts_mask = bt_kill_cts_msg[kill_msk]; +/* schedule to send runtime bt_config */ queue_work (priv->workqueue, &priv->bt_runtime_config); } - } void iwlagn_bt_coex_profile_notif(struct iwl_priv *priv,
@@ -2064,7 +2070,7 @@ void iwlagn_bt_coex_profile_notif(struct iwl_priv *priv, } } -iwlagn_set_kill_ack_msk (priv, uart_msg); +iwlagn_set_kill_msk (priv, uart_msg);/* FIXME: based on notification, adjust the prio_boost */
drivers/net/wireless/iwlwifi/iwl-commands.h +1 -0
@@ -2453,6 +2453,7 @@ struct iwl_bt_cmd {#define IWLAGN_BT_KILL_ACK_MASK_DEFAULT cpu_to_le32(0xffff0000)#define IWLAGN_BT_KILL_CTS_MASK_DEFAULT cpu_to_le32(0xffff0000) +#define IWLAGN_BT_KILL_ACK_CTS_MASK_SCO cpu_to_le32(0xffffffff)#define IWLAGN_BT3_PRIO_SAMPLE_DEFAULT 2
Signature · 1 line
1.7.0.4
PATCH 10/12 iwlagn: Offical name for 100/130 device
In reply to Wey-Yi GuyChange to offical name for 100 devices:
"Intel(R) Centrino(R) Wireless-N 100"
Change to offical name for 130 devices:
"Intel(R) Centrino(R) Wireless-N 130"
--- drivers/net/wireless/iwlwifi/iwl-1000.c | 4 ++-- drivers/net/wireless/iwlwifi/iwl-6000.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/iwlwifi/iwl-1000.c +2 -2
@@ -301,7 +301,7 @@ struct iwl_cfg iwl1000_bg_cfg = { };struct iwl_cfg iwl100_bgn_cfg = { - .name ="Intel(R) 100 Series 1x1 BGN" , + .name ="Intel(R) Centrino(R) Wireless-N 100 BGN" , .fw_name_pre =IWL100_FW_PRE , .ucode_api_max =IWL100_UCODE_API_MAX , .ucode_api_min =IWL100_UCODE_API_MIN ,
@@ -315,7 +315,7 @@ struct iwl_cfg iwl100_bgn_cfg = { };struct iwl_cfg iwl100_bg_cfg = { - .name ="Intel(R) 100 Series 1x1 BG" , + .name ="Intel(R) Centrino(R) Wireless-N 100 BG" , .fw_name_pre =IWL100_FW_PRE , .ucode_api_max =IWL100_UCODE_API_MAX , .ucode_api_min =IWL100_UCODE_API_MIN ,
drivers/net/wireless/iwlwifi/iwl-6000.c +2 -2
@@ -827,7 +827,7 @@ struct iwl_cfg iwl6000_3agn_cfg = { };struct iwl_cfg iwl130_bgn_cfg = { - .name ="Intel(R) 130 Series 1x1 BGN" , + .name ="Intel(R) Centrino(R) Wireless-N 130 BGN" , .fw_name_pre =IWL6000G2B_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
@@ -846,7 +846,7 @@ struct iwl_cfg iwl130_bgn_cfg = { };struct iwl_cfg iwl130_bg_cfg = { - .name ="Intel(R) 130 Series 1x2 BG" , + .name ="Intel(R) Centrino(R) Wireless-N 130 BG" , .fw_name_pre =IWL6000G2B_FW_PRE , .ucode_api_max =IWL6000G2_UCODE_API_MAX , .ucode_api_min =IWL6000G2_UCODE_API_MIN ,
Signature · 1 line
1.7.0.4
PATCH 12/12 iwlagn: minor change in bt coex normal LUT
In reply to Wey-Yi GuyMinor changes in LUT
--- drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/iwlwifi/iwl-agn-lib.c +1 -1
@@ -1778,7 +1778,7 @@ static const __le32 iwlagn_def_3w_lookup[12] = {cpu_to_le32 (0xc0004000 ),cpu_to_le32 (0x00004000 ),cpu_to_le32 (0xf0005000 ), - cpu_to_le32(0xf0004000), + cpu_to_le32(0xf0005000), }; static const __le32 iwlagn_concurrent_lookup[12] = {
Signature · 1 line
1.7.0.4