Hi Johannes,
On 02/19/2018 06:44 AM, Johannes Berg wrote:
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.
I've no means of testing the other modes at this time. So I'm not sure
what to tell you. I can respin with IFTYPE_P2P_CLIENT in the
switch/case (or you can amend and do so).
Regards,
-Denis