wireless: fix usage of freq_reg_info()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ath: fix usage of freq_reg_info()drivers/ | +1 | 0 replies | |
| 2/3 | brcm80211: fix usage of freq_reg_info()drivers/ | +2 | 1 reply | |
| 3/3 | rtlwifi: fix usage of freq_reg_info()drivers/ | +4 | 1 reply |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Larry Finger | Arend van Spriel |
|---|---|---|
| 1/3 | ||
| 2/3 | A-b | |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] wireless: fix usage of freq_reg_info()
Mihir reported freq_reg_info() was being used incorrectly on ath/regd.c, I spotted this was true for years, and given that a few vendors copied the same behaviour it meant other drivers also had this broken. This fixes this issue accross 3 drivers.
These patches depend on the no-ir patches, and depending on what tree that goes in this may be desirable to be merged there.
The fix is represented with the Coccinelle SmPL grammar:
@@
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));
Luis R. Rodriguez (3):
ath: fix usage of freq_reg_info()
brcm80211: fix usage of freq_reg_info()
rtlwifi: fix usage of freq_reg_info()
drivers/net/wireless/ath/regd.c | 2 +- drivers/net/wireless/brcm80211/brcmsmac/channel.c | 3 ++- drivers/net/wireless/rtlwifi/regd.c | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-)
Signature · 1 line
1.8.4.rc3