hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/include/net/regulatory.h
....@@ -44,7 +44,7 @@
4444 * and potentially inform users of which devices specifically
4545 * cased the conflicts.
4646 * @initiator: indicates who sent this request, could be any of
47
- * of those set in nl80211_reg_initiator (%NL80211_REGDOM_SET_BY_*)
47
+ * those set in nl80211_reg_initiator (%NL80211_REGDOM_SET_BY_*)
4848 * @alpha2: the ISO / IEC 3166 alpha2 country code of the requested
4949 * regulatory domain. We have a few special codes:
5050 * 00 - World regulatory domain
....@@ -230,13 +230,6 @@
230230 enum nl80211_dfs_regions dfs_region;
231231 struct ieee80211_reg_rule reg_rules[];
232232 };
233
-
234
-#define MHZ_TO_KHZ(freq) ((freq) * 1000)
235
-#define KHZ_TO_MHZ(freq) ((freq) / 1000)
236
-#define DBI_TO_MBI(gain) ((gain) * 100)
237
-#define MBI_TO_DBI(gain) ((gain) / 100)
238
-#define DBM_TO_MBM(gain) ((gain) * 100)
239
-#define MBM_TO_DBM(gain) ((gain) / 100)
240233
241234 #define REG_RULE_EXT(start, end, bw, gain, eirp, dfs_cac, reg_flags) \
242235 { \