linux_dsm_epyc7002/drivers/net/wireless/brcm80211/brcmsmac
Luis R. Rodriguez 685cc47174 brcm80211: fix usage of freq_reg_info()
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>
2013-12-05 14:54:49 -05:00
..
phy brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
aiutils.c brcmsmac: use bcma PCIe up and down functions 2013-08-26 14:09:03 -04:00
aiutils.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
ampdu.c brcmsmac: Further reduce log spam from tx phy messages 2013-07-22 16:54:41 -04:00
ampdu.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
antsel.c brcmsmac: Use debug macros for general error and debug statements 2012-11-20 14:06:16 -05:00
antsel.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
brcms_trace_events.c
brcms_trace_events.h brcmsmac: Add tracepoint for AMPDU session information 2012-11-20 14:08:06 -05:00
channel.c brcm80211: fix usage of freq_reg_info() 2013-12-05 14:54:49 -05:00
channel.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
d11.h brcmsmac: implement ieee80211_ops get_tsf and set_tsf 2013-03-27 13:37:33 -04:00
debug.c PTR_RET is now PTR_ERR_OR_ZERO(): Replace most. 2013-07-15 11:25:01 +09:30
debug.h brcmsmac: add copyright information for Canonical 2013-01-02 14:38:36 -05:00
dma.c brcmsmac: Fix WARNING caused by lack of calls to dma_mapping_error() 2013-08-15 16:08:09 -04:00
dma.h brcmsmac: Add brcms_dbg_dma() debug macro 2012-11-20 14:07:12 -05:00
led.c brcmsmac: radio on led support 2013-03-06 16:28:20 -05:00
led.h brcmsmac: radio on led support 2013-03-06 16:28:20 -05:00
mac80211_if.c cfg80211: consolidate passive-scan and no-ibss flags 2013-11-25 20:49:35 +01:00
mac80211_if.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
main.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2013-10-17 14:02:07 -04:00
main.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
Makefile brcm80211: simplify makefiles 2013-04-12 15:29:04 -04:00
phy_shim.c
phy_shim.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
pmu.c brcmsmac: remove some pmu functions and use the bcma equivalents 2013-03-27 13:39:09 -04:00
pmu.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
pub.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
rate.c
rate.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
scb.h brcmsmac: remove dead code 2013-01-07 15:16:55 -05:00
stf.c brcmsmac: Add brcms_dbg_ht() debug macro 2012-11-20 14:07:25 -05:00
stf.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00
types.h brcm80211: Convert log message levels to debug levels 2012-11-20 14:05:37 -05:00
ucode_loader.c
ucode_loader.h brcm80211: Remove extern from function prototypes 2013-09-24 17:32:48 -07:00