mac80211: TDLS: use the BSS chandef for HT/VHT operation IEs
authorArik Nemtsov <arik@wizery.com>
Thu, 7 May 2015 12:30:41 +0000 (15:30 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 May 2015 12:52:15 +0000 (14:52 +0200)
commit890b7878e4435518c45d80c5e33c335aab39d4e2
treea892a6b6dfc7b9f7e907664481e81c3c59db4245
parent96a4688edb5e638a9f81c787c031bbdbfa291527
mac80211: TDLS: use the BSS chandef for HT/VHT operation IEs

The chandef of the current channel context might be wider (though
compatible). The TDLS link cares only about the channel of the BSS.

In addition make sure to specify the VHT operation IE when VHT is supported
on a non-2.4GHz band, as required by IEEE802.11ac-2013. This is not the
same as HT-operation, to be specified only if the BSS doesn't support HT.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tdls.c