]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: Add support for NL80211_ATTR_MAX_AP_ASSOC_STA
authorPali Rohár <pali@kernel.org>
Thu, 21 May 2020 12:35:59 +0000 (14:35 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 May 2020 17:41:45 +0000 (20:41 +0300)
commit44a9a736c72dfeb2da74c740ab25a1fe10bbfdd0
treeb9886a39db6be883c8a131cccdcc56b124220c01
parenta2b54096c49ad2b781ed914fc8ae482ff5a742c1
mwifiex: Add support for NL80211_ATTR_MAX_AP_ASSOC_STA

SD8997 firmware sends TLV_TYPE_MAX_CONN with struct hw_spec_max_conn to
inform kernel about maximum number of p2p connections and stations in AP
mode.

During initialization of SD8997 wifi chip kernel prints warning:

  mwifiex_sdio mmc0:0001:1: Unknown GET_HW_SPEC TLV type: 0x217

This patch adds support for parsing TLV_TYPE_MAX_CONN (0x217) and sets
appropriate cfg80211 member 'max_ap_assoc_sta' from retrieved structure.

It allows userspace to retrieve NL80211_ATTR_MAX_AP_ASSOC_STA attribute.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200521123559.29028-1-pali@kernel.org
drivers/net/wireless/marvell/mwifiex/cfg80211.c
drivers/net/wireless/marvell/mwifiex/cmdevt.c
drivers/net/wireless/marvell/mwifiex/fw.h
drivers/net/wireless/marvell/mwifiex/main.h