diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-06-18 14:33:16 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-06-25 17:50:53 -0400 |
commit | 4e3243f549540235d180e446715a14c1b5827902 (patch) | |
tree | 9ad7a9dbf1f7843365db9308833dba64449545e9 /drivers | |
parent | e691e19e05c2cef72cd7f81bcae4195c81d4bf51 (diff) |
iwlwifi: name change from signal protection flag
This bit need to be set for both RTS/CTS or CTS-to-self protection, if
CTS-to-self is used, then uCode will check the RXON_FLG_SELF_CTS_EN
status. Change the name from TX_CMD_FLG_RTS_CTS_MSK to TX_CMD_FLAG_PROT_REQUIRE_MSK
to match the behavior of the bit setting.
Also update comments to reflect which hardware uses which of the TX command
flags.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 30 |
2 files changed, 22 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c index d89a11c6558e..f06d1feedf81 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c | |||
@@ -214,7 +214,7 @@ static void iwlagn_chain_noise_reset(struct iwl_priv *priv) | |||
214 | static void iwlagn_rts_tx_cmd_flag(struct ieee80211_tx_info *info, | 214 | static void iwlagn_rts_tx_cmd_flag(struct ieee80211_tx_info *info, |
215 | __le32 *tx_flags) | 215 | __le32 *tx_flags) |
216 | { | 216 | { |
217 | *tx_flags |= TX_CMD_FLG_RTS_CTS_MSK; | 217 | *tx_flags |= TX_CMD_FLG_PROT_REQUIRE_MSK; |
218 | } | 218 | } |
219 | 219 | ||
220 | /* Calc max signal level (dBm) among 3 possible receivers */ | 220 | /* Calc max signal level (dBm) among 3 possible receivers */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index 498492565912..a304f771bcc3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -1399,18 +1399,27 @@ struct iwl_rx_mpdu_res_start { | |||
1399 | 1399 | ||
1400 | /* REPLY_TX Tx flags field */ | 1400 | /* REPLY_TX Tx flags field */ |
1401 | 1401 | ||
1402 | /* 1: Use RTS/CTS protocol or CTS-to-self if spec allows it | 1402 | /* |
1403 | * 1: Use RTS/CTS protocol or CTS-to-self if spec allows it | ||
1403 | * before this frame. if CTS-to-self required check | 1404 | * before this frame. if CTS-to-self required check |
1404 | * RXON_FLG_SELF_CTS_EN status. */ | 1405 | * RXON_FLG_SELF_CTS_EN status. |
1405 | #define TX_CMD_FLG_RTS_CTS_MSK cpu_to_le32(1 << 0) | 1406 | * unused in 3945/4965, used in 5000 series and after |
1407 | */ | ||
1408 | #define TX_CMD_FLG_PROT_REQUIRE_MSK cpu_to_le32(1 << 0) | ||
1406 | 1409 | ||
1407 | /* 1: Use Request-To-Send protocol before this frame. | 1410 | /* |
1408 | * Mutually exclusive vs. TX_CMD_FLG_CTS_MSK. */ | 1411 | * 1: Use Request-To-Send protocol before this frame. |
1412 | * Mutually exclusive vs. TX_CMD_FLG_CTS_MSK. | ||
1413 | * used in 3945/4965, unused in 5000 series and after | ||
1414 | */ | ||
1409 | #define TX_CMD_FLG_RTS_MSK cpu_to_le32(1 << 1) | 1415 | #define TX_CMD_FLG_RTS_MSK cpu_to_le32(1 << 1) |
1410 | 1416 | ||
1411 | /* 1: Transmit Clear-To-Send to self before this frame. | 1417 | /* |
1418 | * 1: Transmit Clear-To-Send to self before this frame. | ||
1412 | * Driver should set this for AUTH/DEAUTH/ASSOC-REQ/REASSOC mgmnt frames. | 1419 | * Driver should set this for AUTH/DEAUTH/ASSOC-REQ/REASSOC mgmnt frames. |
1413 | * Mutually exclusive vs. TX_CMD_FLG_RTS_MSK. */ | 1420 | * Mutually exclusive vs. TX_CMD_FLG_RTS_MSK. |
1421 | * used in 3945/4965, unused in 5000 series and after | ||
1422 | */ | ||
1414 | #define TX_CMD_FLG_CTS_MSK cpu_to_le32(1 << 2) | 1423 | #define TX_CMD_FLG_CTS_MSK cpu_to_le32(1 << 2) |
1415 | 1424 | ||
1416 | /* 1: Expect ACK from receiving station | 1425 | /* 1: Expect ACK from receiving station |
@@ -1430,8 +1439,11 @@ struct iwl_rx_mpdu_res_start { | |||
1430 | * Set when Txing a block-ack request frame. Also set TX_CMD_FLG_ACK_MSK. */ | 1439 | * Set when Txing a block-ack request frame. Also set TX_CMD_FLG_ACK_MSK. */ |
1431 | #define TX_CMD_FLG_IMM_BA_RSP_MASK cpu_to_le32(1 << 6) | 1440 | #define TX_CMD_FLG_IMM_BA_RSP_MASK cpu_to_le32(1 << 6) |
1432 | 1441 | ||
1433 | /* 1: Frame requires full Tx-Op protection. | 1442 | /* |
1434 | * Set this if either RTS or CTS Tx Flag gets set. */ | 1443 | * 1: Frame requires full Tx-Op protection. |
1444 | * Set this if either RTS or CTS Tx Flag gets set. | ||
1445 | * used in 3945/4965, unused in 5000 series and after | ||
1446 | */ | ||
1435 | #define TX_CMD_FLG_FULL_TXOP_PROT_MSK cpu_to_le32(1 << 7) | 1447 | #define TX_CMD_FLG_FULL_TXOP_PROT_MSK cpu_to_le32(1 << 7) |
1436 | 1448 | ||
1437 | /* Tx antenna selection field; used only for 3945, reserved (0) for 4965. | 1449 | /* Tx antenna selection field; used only for 3945, reserved (0) for 4965. |