Re: Regulatory: reg.c : wiphy_apply_custom_regulatory()

2018-02-10 Thread Johannes Berg

> Can wiphy_apply_custom_regulatory() be called after wiphy registeration?
> The documentation(comment) says "/* Used by drivers prior to wiphy
> registration */"
> Whys is there a restriction to call this after registration? Is the
> comment outdated? After Tracing the regulatory code in the cfg80211,
> it seems that there should be no restriction.

Well, I think nothing gets reported to userspace when you call this
function, which I think is the reason for this.

If you want to update on the fly you should call
regulatory_set_wiphy_regd() instead?

johannes


Regulatory: reg.c : wiphy_apply_custom_regulatory()

2018-01-24 Thread Neelansh Mittal
Hello,

Can wiphy_apply_custom_regulatory() be called after wiphy registeration?
The documentation(comment) says "/* Used by drivers prior to wiphy
registration */"
Whys is there a restriction to call this after registration? Is the
comment outdated? After Tracing the regulatory code in the cfg80211,
it seems that there should be no restriction.

Regards
Neelansh