diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index c4014ee3f667..d0ba3e646ec6 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -18294,6 +18294,9 @@ void cfg80211_ch_switch_notify(struct net_device *dev, case NL80211_IFTYPE_P2P_GO: wdev->links[link_id].ap.chandef = *chandef; break; + case NL80211_IFTYPE_ADHOC: + wdev->u.ibss.chandef = *chandef; + break; default: WARN_ON(1); break;