Re: [PATCH v2 4/4] cfg80211: Allow usermode to query wiphy specific regd info

2014-11-21 Thread Luis R. Rodriguez
On Fri, Nov 21, 2014 at 11:33:43AM +0200, Arik Nemtsov wrote: > On Thu, Nov 20, 2014 at 10:54 PM, Luis R. Rodriguez wrote: > >> > >> Then it gets the global one, and it knows it via a wiphy attribute: > >> > >> (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED) && > >> +

Re: [PATCH v2 4/4] cfg80211: Allow usermode to query wiphy specific regd info

2014-11-21 Thread Arik Nemtsov
On Thu, Nov 20, 2014 at 10:54 PM, Luis R. Rodriguez wrote: >> >> Then it gets the global one, and it knows it via a wiphy attribute: >> >> (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED) && >> + (nla_put_flag(msg, NL80211_ATTR_WIPHY_SELF_MANAGED_REG))) >> +

Re: [PATCH v2 4/4] cfg80211: Allow usermode to query wiphy specific regd info

2014-11-20 Thread Luis R. Rodriguez
On Thu, Nov 20, 2014 at 06:47:24PM +0200, Arik Nemtsov wrote: > On Thu, Nov 20, 2014 at 5:22 PM, Johannes Berg > wrote: > > On Sun, 2014-11-16 at 13:06 +0200, Arik Nemtsov wrote: > > > >> We intend to add a patch to wpa_s to always add the wiphy_idx to > >> NL80211_CMD_GET_REG. With the current ap

Re: [PATCH v2 4/4] cfg80211: Allow usermode to query wiphy specific regd info

2014-11-20 Thread Arik Nemtsov
On Thu, Nov 20, 2014 at 5:22 PM, Johannes Berg wrote: > On Sun, 2014-11-16 at 13:06 +0200, Arik Nemtsov wrote: > >> We intend to add a patch to wpa_s to always add the wiphy_idx to >> NL80211_CMD_GET_REG. With the current approach only drivers with >> SELF_MANAGED_REG will get wiphy->regd back. Th

Re: [PATCH v2 4/4] cfg80211: Allow usermode to query wiphy specific regd info

2014-11-20 Thread Johannes Berg
On Sun, 2014-11-16 at 13:06 +0200, Arik Nemtsov wrote: > We intend to add a patch to wpa_s to always add the wiphy_idx to > NL80211_CMD_GET_REG. With the current approach only drivers with > SELF_MANAGED_REG will get wiphy->regd back. This is ok since these are > new drivers, which are familiar wi

Re: [PATCH v2 4/4] cfg80211: Allow usermode to query wiphy specific regd info

2014-11-16 Thread Arik Nemtsov
On Fri, Nov 14, 2014 at 1:13 AM, Luis R. Rodriguez wrote: > On Thu, Nov 13, 2014 at 06:13:39PM +0200, Arik Nemtsov wrote: >> From: Jonathan Doron >> >> Allow usermode to query wiphy-specific regd info, for drivers that use >> wiphy-specific regulatory management. >> >> Use the existing API for se

Re: [PATCH v2 4/4] cfg80211: Allow usermode to query wiphy specific regd info

2014-11-13 Thread Luis R. Rodriguez
On Thu, Nov 13, 2014 at 06:13:39PM +0200, Arik Nemtsov wrote: > From: Jonathan Doron > > Allow usermode to query wiphy-specific regd info, for drivers that use > wiphy-specific regulatory management. > > Use the existing API for sending regdomain info to usermode, but return > the wiphy-specific

[PATCH v2 4/4] cfg80211: Allow usermode to query wiphy specific regd info

2014-11-13 Thread Arik Nemtsov
From: Jonathan Doron Allow usermode to query wiphy-specific regd info, for drivers that use wiphy-specific regulatory management. Use the existing API for sending regdomain info to usermode, but return the wiphy-specific regd in case wiphy index is provided and the driver employs wiphy-specific