freq_reg_info() expects KHz and not MHz, fix this. In this case we'll now be getting the no-ir flags cleared on channels for any channel when the country IE trusts that channel. @@ struct ieee80211_channel *ch; struct wiphy *wiphy; const struct ieee80211_reg_rule *rule; @@ -rule = freq_reg_info(wiphy, ch->center_freq); +rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq)); Generated-by: Coccinelle SmPL Cc: Julia Lawall <julia.lawall@lip6.fr> Cc: Peter Senna Tschudin <peter.senna@gmail.com> Cc: Seth Forshee <seth.forshee@canonical.com> Cc: Arend van Spriel <arend@broadcom.com> Reported-by: Mihir Shete <smihir@qti.qualcomm.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Acked-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> |
||
|---|---|---|
| .. | ||
| phy | ||
| aiutils.c | ||
| aiutils.h | ||
| ampdu.c | ||
| ampdu.h | ||
| antsel.c | ||
| antsel.h | ||
| brcms_trace_events.c | ||
| brcms_trace_events.h | ||
| channel.c | ||
| channel.h | ||
| d11.h | ||
| debug.c | ||
| debug.h | ||
| dma.c | ||
| dma.h | ||
| led.c | ||
| led.h | ||
| mac80211_if.c | ||
| mac80211_if.h | ||
| main.c | ||
| main.h | ||
| Makefile | ||
| phy_shim.c | ||
| phy_shim.h | ||
| pmu.c | ||
| pmu.h | ||
| pub.h | ||
| rate.c | ||
| rate.h | ||
| scb.h | ||
| stf.c | ||
| stf.h | ||
| types.h | ||
| ucode_loader.c | ||
| ucode_loader.h | ||