]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/drivers/driver_nl80211.c
nl80211: Disable 11b rates for P2P (additional cases)
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 14 Oct 2015 09:26:32 +0000 (12:26 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 14 Oct 2015 20:57:53 +0000 (23:57 +0300)
commite8dc205f1710522ebc9a416140c32e8e15afd069
treecd63e2a5681d1f6eaa7164a18eda81e48641d173
parent1a21fd37f9ea18c584103543afe51ee35c5a1313
nl80211: Disable 11b rates for P2P (additional cases)

Some drivers (like mac80211) do not accept changing the TX bitrate mask
before the network interface is up. Thus, calling
nl80211_disable_11b_rates() before the interface is up fails, and the
P2P network interface continues to use invalid bitrates.

To fix this call nl80211_disable_11b_rates() immediately after the
interface is brought up (and also after rfkill is unblocked).

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/drivers/driver_nl80211.c