On Wed, 2018-01-31 at 19:04 -0600, Denis Kenzior wrote:
>
> + switch (wdev->iftype) {
> + case NL80211_IFTYPE_STATION:
> + if (wdev->current_bss)
> + break;
> + err = -ENOTCONN;
> + goto out;
> + default:
> + err = -EOPNOTSUPP;
> + goto out;
> + }
>
Why restrict this to client mode? At the very least, P2P_CLIENT really
should be listed there, but I'm not sure why not also support it in
IBSS, and AP/P2P_GO/AP_VLAN modes?
We could do this in a separate patch, but then we have to define
different flags for the modes which seems somewhat pointless.
johannes