Commit 8654b79f authored by Helmut Schaa's avatar Helmut Schaa Committed by John W. Linville

rt2x00: Disable link tuning in AP mode

Since the link tuning is based on average RSSI values taken from all received
frames it doesn't make sense to enable it in AP mode where every associated
station provides independent RSSI values. Furthermore the legacy drivers
don't enable link tuning in AP mode as well.
Signed-off-by: default avatarHelmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent fa43750f
...@@ -271,11 +271,11 @@ void rt2x00link_start_tuner(struct rt2x00_dev *rt2x00dev) ...@@ -271,11 +271,11 @@ void rt2x00link_start_tuner(struct rt2x00_dev *rt2x00dev)
/* /*
* Link tuning should only be performed when * Link tuning should only be performed when
* an active sta or master interface exists. * an active sta interface exists. AP interfaces
* Single monitor mode interfaces should never have * don't need link tuning and monitor mode interfaces
* work with link tuners. * should never have to work with link tuners.
*/ */
if (!rt2x00dev->intf_ap_count && !rt2x00dev->intf_sta_count) if (!rt2x00dev->intf_sta_count)
return; return;
rt2x00link_reset_tuner(rt2x00dev, false); rt2x00link_reset_tuner(rt2x00dev, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment