diff options
author | Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> | 2018-10-19 17:40:13 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-11-09 08:55:32 +0100 |
commit | 81c5dce2cd0bb0ecb61b6212410da5eb78cd8f79 (patch) | |
tree | 90b28242c0b9b0d01265a8c7c30cb579cabe1b0d /net/wireless/sme.c | |
parent | mac80211_hwsim: Timer should be initialized before device registered (diff) | |
download | linux-81c5dce2cd0bb0ecb61b6212410da5eb78cd8f79.tar.xz linux-81c5dce2cd0bb0ecb61b6212410da5eb78cd8f79.zip |
cfg80211: add missing constraint for user-supplied VHT mask
Do a logical vht_capa &= vht_capa_mask of user-supplied VHT mask with
the driver-supplied mask of modifiable VHT capabilities.
Fix whitespaces and comment typos.
Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/sme.c')
-rw-r--r-- | net/wireless/sme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/sme.c b/net/wireless/sme.c index d536b07582f8..1c93412038dc 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c @@ -1171,6 +1171,8 @@ int cfg80211_connect(struct cfg80211_registered_device *rdev, cfg80211_oper_and_ht_capa(&connect->ht_capa_mask, rdev->wiphy.ht_capa_mod_mask); + cfg80211_oper_and_vht_capa(&connect->vht_capa_mask, + rdev->wiphy.vht_capa_mod_mask); if (connkeys && connkeys->def >= 0) { int idx; |