qtnfmac: fix handling of iftype mask reported by firmware

Firmware sends supported interface type rather than mask. As a result,
types field of ieee80211_iface_limit structure may end up having
multiple iftype bits set. This leads to WARN_ON from
wiphy_verify_combinations.

Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Avinash Patil <avinashp@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Sergey Matyukevich
2017-07-28 02:06:52 +03:00
committed by Kalle Valo
parent c7ead2abd2
commit 41c8fa0c62
4 changed files with 20 additions and 16 deletions

View File

@@ -873,7 +873,7 @@ struct qlink_tlv_hdr {
struct qlink_iface_limit {
__le16 max_num;
__le16 type_mask;
__le16 type;
} __packed;
struct qlink_iface_comb_num {