]> Git Repo - linux.git/commit
rtlwifi: fix usage of freq_reg_info()
authorLuis R. Rodriguez <[email protected]>
Tue, 29 Oct 2013 18:34:26 +0000 (19:34 +0100)
committerJohn W. Linville <[email protected]>
Thu, 5 Dec 2013 19:54:51 +0000 (14:54 -0500)
commit856a4ef9f01e9f4b42c96dd70268f4864a93f72c
tree92070f916a89f3f30fe6ebff373028a72ebaf705
parent685cc47174f730e68867d83b7db5e36283255e6d
rtlwifi: 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 <[email protected]>
Cc: Peter Senna Tschudin <[email protected]>
Cc: Larry Finger <[email protected]>
Reported-by: Mihir Shete <[email protected]>
Signed-off-by: Luis R. Rodriguez <[email protected]>
Acked-by: Larry Finger <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/rtlwifi/regd.c
This page took 0.04795 seconds and 4 git commands to generate.