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?

johannes

Reply via email to