nl80211: Update bss channel on channel switch for P2P_CLIENT
authorSreeramya Soratkal <quic_ssramya@quicinc.com>
Tue, 1 Mar 2022 06:03:20 +0000 (11:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Mar 2022 12:47:49 +0000 (13:47 +0100)
commitf5a425f5d5fc9082218ab004c211fcfcbdd53549
tree990af1053318a62406c324e635ac1ff8ca53781c
parent3534c5c005ef99a1804ed50b8a72cdae254cabb5
nl80211: Update bss channel on channel switch for P2P_CLIENT

[ Upstream commit e50b88c4f076242358b66ddb67482b96947438f2 ]

The wdev channel information is updated post channel switch only for
the station mode and not for the other modes. Due to this, the P2P client
still points to the old value though it moved to the new channel
when the channel change is induced from the P2P GO.

Update the bss channel after CSA channel switch completion for P2P client
interface as well.

Signed-off-by: Sreeramya Soratkal <quic_ssramya@quicinc.com>
Link: https://lore.kernel.org/r/1646114600-31479-1-git-send-email-quic_ssramya@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/nl80211.c