cfg80211: ignore channel state for stopped AP interfaces
PATCH 1/1 cfg80211: ignore channel state for stopped AP interfaces
Without this change, running AP + station on the same wiphy does not work since the commit "cfg80211: add channel checking for iface combinations". The stopped AP prevents the client from connecting to an AP on a different channel.
Signed-off-by Felix Fietkau <[email protected]>
--- net/wireless/chan.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
net/wireless/chan.c +4 -2
@@ -137,8 +137,10 @@ cfg80211_get_chan_state(struct cfg80211_registered_device *rdev,case NL80211_IFTYPE_AP :case NL80211_IFTYPE_P2P_GO :case NL80211_IFTYPE_MESH_POINT : - *chan = wdev->channel; - *chanmode =CHAN_MODE_SHARED ; +if (wdev->beacon_interval) { + *chan = wdev->channel; + *chanmode =CHAN_MODE_SHARED ; + }return ;case NL80211_IFTYPE_MONITOR :case NL80211_IFTYPE_AP_VLAN :
Signature · 1 line
1.7.3.2