]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: fix ht protection flags
authorAvri Altman <avri.altman@intel.com>
Tue, 12 Nov 2013 17:16:03 +0000 (19:16 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 9 Dec 2013 20:29:03 +0000 (22:29 +0200)
commita60523ebfc1ae9a67f3fdc5059261832600b989e
treed71936804b8f565382c60d504d39fd283d433ab6
parent581c8018694f2f4e6a9ad440d760f7a17e3406c7
iwlwifi: mvm: fix ht protection flags

The HT protection flags have been a mess for a long time,
this patch fixes all this.

The proper source of information for this is the
protection in the HT operation mode IE which is
propagated to bss_conf by mac80211.

1) No need to set the HT protection flags when the link
   doesn't support HT.
2) We need to set the TGG protection when ERP is active.

Signed-off-by: Avri Altman <avri.altman@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
drivers/net/wireless/iwlwifi/mvm/mac80211.c