On Mon, 2017-11-27 at 16:07 +0100, Peter Große wrote:
> > I think if the driver has WANT_MONITOR_VIF, then we can pass that
> > through and let the driver sort it out.
> >
> > But if not, we probably just have to reject the configuration?
>
> With passing through you mean calling bss_info_changed on the driver for the
> monitor interface?
I meant to pass the &monitor_sdata.vif pointer instead of the real
monitor interface that's coming through cfg80211. The former is virtual
and has no netdev, but the diver is aware of it.
> Are monitor interfaces allowed to exist when WANT_MONITOR_VIF is not set?
Yes
> I ask, whether I would have to check
> sdata->vif.type == NL80211_IFTYPE_MONITOR
> _and_ also
> ieee80211_hw_check(&local->hw, WANT_MONITOR_VIF)
You can check that
local->monitor_sdata
exists, and use it if yes, and reject if no.
johannes