• Luis R. Rodriguez's avatar
    cfg80211: Fix regression with 11d on bands · 0c7dc45d
    Luis R. Rodriguez authored
    This fixes a regression on disallowing bands introduced with the new
    802.11d support. The issue is that IEEE-802.11 allows APs to send
    a subset of what a country regulatory domain defines. This was clarified
    in this document:
    
    http://tinyurl.com/11d-clarification
    
    As such it is possible, and this is what is done in practice, that a
    single band 2.4 GHz AP will only send 2.4 GHz band regulatory information
    through the 802.11 country information element and then the current
    intersection with what CRDA provided yields a regulatory domain with
    no 5 GHz information -- even though that country may actually allow
    5 GHz operation. We correct this by only applying the intersection rules
    on a channel if the the intersection yields a regulatory rule on the
    same band the channel is on.
    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>
    0c7dc45d
reg.c 42.1 KB