>
> On Tue, 2017-09-05 at 16:49 +0000, Grumbach, Emmanuel wrote:
> > On Tue, 2017-09-05 at 16:30 +0200, Johannes Berg wrote:
> > > On Sat, 2017-08-05 at 11:44 +0300, Luca Coelho wrote:
> > >
> > > > + regd = get_wiphy_regdom(wiphy);
> > > > + if (regd) {
> > > > + const struct ieee80211_reg_rule *reg_rule =
> > > > + freq_reg_info_regd(MHZ_TO_KHZ(channel-
> > > > > center_freq),
> > > >
> > > > + regd,
> > > > MHZ_TO_KHZ(20));
> > > >
> > >
> > > This could return an error, how can you be sure it doesn't?
> > >
> >
> > Hm... so I guess I could check that it didn't return any error and if
> > it did, then flags = 0?
> >
> > Something like this? (on top of this patch):
> > [snip]
>
> yeah that's obviously the easy thing to do - I just wasn't sure that you
> didn't
> have a reason to believe it could never be an ERR_PTR :)
>
TBH, I don't really know... I don't know if *all* the channels are covered by
rules.
For sure, if there is no rule, I can assume that the HT40{+,-} are not set...
But I don't know if that's even possible.- [PATCH 10/10] nl80211: return error for invalid center_... Luca Coelho
- [PATCH 02/10] mac80211: shorten debug prints using ht_d... Luca Coelho
- [PATCH 08/10] mac80211: recalculate some sta parameters... Luca Coelho
- [PATCH 07/10] mac80211: add api to start ba session tim... Luca Coelho
- Re: [PATCH 07/10] mac80211: add api to start ba se... kbuild test robot
- [PATCH v2] mac80211: add api to start ba session t... Luca Coelho
- [PATCH 06/10] cfg80211: honor NL80211_RRF_NO_HT40{MINUS... Luca Coelho
- Re: [PATCH 06/10] cfg80211: honor NL80211_RRF_NO_H... Johannes Berg
- Re: [PATCH 06/10] cfg80211: honor NL80211_RRF_... Grumbach, Emmanuel
- Re: [PATCH 06/10] cfg80211: honor NL80211_... Johannes Berg
- RE: [PATCH 06/10] cfg80211: honor NL80... Grumbach, Emmanuel
- [PATCH v2] cfg80211: honor NL80211_RRF_NO_HT40{MIN... Emmanuel Grumbach
- [PATCH 01/10] mac80211: add MESH IE in the correct orde... Luca Coelho
- Re: [PATCH 00/10] mac80211 patches from our internal t... Kalle Valo
- Re: [PATCH 00/10] mac80211 patches from our internal t... Johannes Berg
