• Luis R. Rodriguez's avatar
    cfg80211: treat ieee80211_regdom hints as user hints · ae9e4b0d
    Luis R. Rodriguez authored
    We were treating ieee80211_regdom module parameter hints
    as core hints, this means we were not letting the user help
    compliance further when using the module parameter. It also
    meant that users with a device with a custom regulatory
    domain set (wiphy->custom_regulatory) using this module
    parameter were being stuck to the original default core
    static regualtory domain. We fix this by using the static
    cfg80211_regdomain alpha2 as the core hint and treating the
    module parameter separately.
    
    All iwlwifi and ath5k/ath9k/ar9170 devices which world roam
    set the wiphy->custom_regulatory. This change allows users
    using this module parameter to have it trated as a a proper
    user hint and not have it ignored.
    Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
    Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    ae9e4b0d
reg.c 61.5 KB