OSDN Git Service

wifi: mwifiex: Set WIPHY_FLAG_NETNS_OK flag
authorJohannes Wiesboeck <johannes.wiesboeck@aisec.fraunhofer.de>
Thu, 6 Jul 2023 09:34:36 +0000 (11:34 +0200)
committerKalle Valo <kvalo@kernel.org>
Tue, 25 Jul 2023 15:15:10 +0000 (18:15 +0300)
commit7ee92f6b41606202de66f7629a7d3c597d92da02
treebcfddce325f41b5a96480dfa0ee798d3cf281e33
parentdcce94b80a954a8968ff29fafcfb066d6197fa9a
wifi: mwifiex: Set WIPHY_FLAG_NETNS_OK flag

Allow moving the wiphy device for mwififex to a non-inital network
namespace. Many wireless drivers enable this flag implicitly by
initializing through the generic ieee80211_alloc_hw_nm function. As
mwifiex does not utilize this function WIPHY_FLAG_NETNS_OK must be set
explicitly.

Moving to network namespace and working connection tested using
wpa_supplicant from a network namespace as well as from a container on
GyroidOS. The hardware was the Toradex Apalis i.MX8QM Board using the
Azurewave AW-CM276NF wireless module.

Signed-off-by: Johannes Wiesboeck <johannes.wiesboeck@aisec.fraunhofer.de>
Reviewed-by: Michael Weiß <michael.weiss@aisec.fraunhofer.de>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230706093437.3380526-1-johannes.wiesboeck@aisec.fraunhofer.de
drivers/net/wireless/marvell/mwifiex/cfg80211.c