Skip to content

Commit 3f9a8f8

Browse files
Sreeramya Soratkalgregkh
authored andcommitted
nl80211: Update bss channel on channel switch for P2P_CLIENT
[ Upstream commit e50b88c ] 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>
1 parent 0ba557d commit 3f9a8f8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

net/wireless/nl80211.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17127,7 +17127,8 @@ void cfg80211_ch_switch_notify(struct net_device *dev,
1712717127
wdev->chandef = *chandef;
1712817128
wdev->preset_chandef = *chandef;
1712917129

17130-
if (wdev->iftype == NL80211_IFTYPE_STATION &&
17130+
if ((wdev->iftype == NL80211_IFTYPE_STATION ||
17131+
wdev->iftype == NL80211_IFTYPE_P2P_CLIENT) &&
1713117132
!WARN_ON(!wdev->current_bss))
1713217133
cfg80211_update_assoc_bss_entry(wdev, chandef->chan);
1713317134

0 commit comments

Comments
 (0)