On Wed, 2024-10-02 at 13:45 +0200, Felix Fietkau wrote: > > @@ -1215,14 +1217,16 @@ int ieee80211_request_ibss_scan(struct ieee80211_sub_if_data *sdata, > } else { > for (i = 0; i < n_channels; i++) { > if (channels[i]->flags & (IEEE80211_CHAN_NO_IR | > - IEEE80211_CHAN_DISABLED)) > + IEEE80211_CHAN_DISABLED) || > + !cfg80211_wdev_channel_allowed(&sdata->wdev, > + channels[i])) > continue; > > local->int_scan_req->channels[n_ch] = channels[i]; > n_ch++; > } > > - if (WARN_ON_ONCE(n_ch == 0)) > + if (n_ch == 0) > goto unlock; -EBUSY seems somewhat confusing in this case? johannes