Re: [PATCHv2 1/4] cfg80211: handle minimum bandwidth for quarter and half rates

2015-06-11 Thread Johannes Berg
On Thu, 2015-06-11 at 14:46 +0200, Matthias May wrote: > Using the dummy country code: > country XS: DFS-UNSET > (5170 - 5180 @ 5), (N/A, 14), (N/A) > (5175 - 5185 @ 10), (N/A, 17), (N/A) > (5170 - 5190 @ 20), (N/A, 20), (N/A) > > For a center freq of 5175 > The first loop finds th

Re: [PATCHv2 1/4] cfg80211: handle minimum bandwidth for quarter and half rates

2015-06-11 Thread Matthias May
On 11/06/15 13:44, Johannes Berg wrote: On Thu, 2015-06-11 at 13:06 +0200, Matthias May wrote: const struct ieee80211_reg_rule *freq_reg_info(struct wiphy *wiphy, - u32 center_freq) + u32 center_freq, u3

Re: [PATCHv2 1/4] cfg80211: handle minimum bandwidth for quarter and half rates

2015-06-11 Thread Johannes Berg
On Thu, 2015-06-11 at 13:06 +0200, Matthias May wrote: > const struct ieee80211_reg_rule *freq_reg_info(struct wiphy *wiphy, > -u32 center_freq) > +u32 center_freq, u32 min_bw) > { > const struct ieee80

Re: [PATCHv2 1/4] cfg80211: handle minimum bandwidth for quarter and half rates

2015-06-11 Thread Johannes Berg
On Thu, 2015-06-11 at 13:06 +0200, Matthias May wrote: > This patch changes the API of freq_freq_info() to take as additional argument > the minimum bandwidth the caller can handle. > If multiple rules match, the match with the widest bandwidth is returned. You can't make a patch like this that br

[PATCHv2 1/4] cfg80211: handle minimum bandwidth for quarter and half rates

2015-06-11 Thread Matthias May
This patch changes the API of freq_freq_info() to take as additional argument the minimum bandwidth the caller can handle. If multiple rules match, the match with the widest bandwidth is returned. Signed-off-by: Matthias May --- include/net/cfg80211.h | 3 ++- net/wireless/reg.c | 46 ++