wifi: ath11k: refactor vif parameter configurations
authorAloka Dixit <quic_alokad@quicinc.com>
Fri, 5 May 2023 13:11:28 +0000 (16:11 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 9 May 2023 16:58:57 +0000 (19:58 +0300)
commitcb9bea773c85e372931cd7a177db4165adf29d95
treefbb09b6f9b10c7d860c38a54ccbc50414e392640
parentc82dc33f252fd8883be66f2d0230af0fd734c683
wifi: ath11k: refactor vif parameter configurations

Security parameters for each non-transmitting profile can be
different when MBSSID is enabled and this information is included
in the MBSSID element in the Beacon frame. Current implementation
to set rsnie_present and wpaie_present does not parse this element
hence it applies only to the transmitting interface.

Move the code to a separate function to make additions for
non-transmitting interfaces cleaner.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1

Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230405221648.17950-6-quic_alokad@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c