提交 6c40063d 编写于 作者: S Stanislaw Gruszka 提交者: Kalle Valo

rt2800: use RTS/CTS protection instead of CTS-to-self

Change default to RTS/CTS protection. This has a cost of transmitting
one more control frame (RTS) however protect us from traffic from
hidden node.

On station mode will use CTS-to-self if AP will configure that
for the network.
Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 231aeca1
...@@ -1621,7 +1621,7 @@ static void rt2800_config_ht_opmode(struct rt2x00_dev *rt2x00dev, ...@@ -1621,7 +1621,7 @@ static void rt2800_config_ht_opmode(struct rt2x00_dev *rt2x00dev,
* => Protect all HT40 transmissions. * => Protect all HT40 transmissions.
*/ */
mm20_mode = gf20_mode = 0; mm20_mode = gf20_mode = 0;
mm40_mode = gf40_mode = 2; mm40_mode = gf40_mode = 1;
break; break;
case IEEE80211_HT_OP_MODE_PROTECTION_NONMEMBER: case IEEE80211_HT_OP_MODE_PROTECTION_NONMEMBER:
...@@ -1644,7 +1644,7 @@ static void rt2800_config_ht_opmode(struct rt2x00_dev *rt2x00dev, ...@@ -1644,7 +1644,7 @@ static void rt2800_config_ht_opmode(struct rt2x00_dev *rt2x00dev,
* Legacy STAs are present * Legacy STAs are present
* => Protect all HT transmissions. * => Protect all HT transmissions.
*/ */
mm20_mode = mm40_mode = gf20_mode = gf40_mode = 2; mm20_mode = mm40_mode = gf20_mode = gf40_mode = 1;
/* /*
* If erp protection is needed we have to protect HT * If erp protection is needed we have to protect HT
...@@ -1660,7 +1660,7 @@ static void rt2800_config_ht_opmode(struct rt2x00_dev *rt2x00dev, ...@@ -1660,7 +1660,7 @@ static void rt2800_config_ht_opmode(struct rt2x00_dev *rt2x00dev,
/* check for STAs not supporting greenfield mode */ /* check for STAs not supporting greenfield mode */
if (any_sta_nongf) if (any_sta_nongf)
gf20_mode = gf40_mode = 2; gf20_mode = gf40_mode = 1;
/* Update HT protection config */ /* Update HT protection config */
rt2800_register_read(rt2x00dev, MM20_PROT_CFG, &reg); rt2800_register_read(rt2x00dev, MM20_PROT_CFG, &reg);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册