Re: [PATCH 2/5] cfg80211: leave invalid channels on regdomain change

2014-11-13 Thread Arik Nemtsov
On Thu, Nov 13, 2014 at 12:53 AM, Luis R. Rodriguez wrote: > On Wed, Nov 5, 2014 at 1:18 AM, Arik Nemtsov wrote: >> On Wed, Nov 5, 2014 at 5:16 AM, Luis R. Rodriguez >> wrote: >>> On Wed, Oct 22, 2014 at 11:37 PM, Arik Nemtsov wrote: +static bool reg_wdev_chan_valid(struct wiphy *wiphy, st

Re: [PATCH 2/5] cfg80211: leave invalid channels on regdomain change

2014-11-12 Thread Luis R. Rodriguez
On Wed, Nov 5, 2014 at 1:18 AM, Arik Nemtsov wrote: > On Wed, Nov 5, 2014 at 5:16 AM, Luis R. Rodriguez > wrote: >> On Wed, Oct 22, 2014 at 11:37 PM, Arik Nemtsov wrote: >>> +static bool reg_wdev_chan_valid(struct wiphy *wiphy, struct wireless_dev >>> *wdev) >>> +{ >>> + struct ieee80211_

Re: [PATCH 2/5] cfg80211: leave invalid channels on regdomain change

2014-11-05 Thread Arik Nemtsov
On Wed, Nov 5, 2014 at 5:16 AM, Luis R. Rodriguez wrote: > On Wed, Oct 22, 2014 at 11:37 PM, Arik Nemtsov wrote: >> +static bool reg_wdev_chan_valid(struct wiphy *wiphy, struct wireless_dev >> *wdev) >> +{ >> + struct ieee80211_channel *ch; >> + struct cfg80211_chan_def chandef; >> +

Re: [PATCH 2/5] cfg80211: leave invalid channels on regdomain change

2014-11-04 Thread Luis R. Rodriguez
On Wed, Oct 22, 2014 at 11:37 PM, Arik Nemtsov wrote: > +static bool reg_wdev_chan_valid(struct wiphy *wiphy, struct wireless_dev > *wdev) > +{ > + struct ieee80211_channel *ch; > + struct cfg80211_chan_def chandef; > + struct cfg80211_registered_device *rdev = wiphy_to_rdev(wip

[PATCH 2/5] cfg80211: leave invalid channels on regdomain change

2014-10-22 Thread Arik Nemtsov
When the regulatory settings change, some channels might become invalid. Disconnect interfaces acting on these channels, after giving userspace code a grace period to leave them. Signed-off-by: Arik Nemtsov --- include/net/regulatory.h | 6 +++ net/wireless/reg.c | 99