Commit 0c1784cb authored by Zong-Zhe Yang's avatar Zong-Zhe Yang Committed by Kalle Valo
Browse files

wifi: rtw88: regd: configure QATAR and UK



In newer Realtek parameter package, Realtek regd can configure
QATAR and UK individually. So, driver extends the regd enum.
Besides, driver configure alternative of them which will be
referenced when parameter package of a chip doesn't consider
QATAR and UK individually.

Signed-off-by: default avatarZong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231004085051.205683-2-pkshih@realtek.com
parent ea2274ab
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -342,8 +342,10 @@ enum rtw_regulatory_domains {
	RTW_REGD_UKRAINE	= 7,
	RTW_REGD_MEXICO		= 8,
	RTW_REGD_CN		= 9,
	RTW_REGD_WW,
	RTW_REGD_QATAR		= 10,
	RTW_REGD_UK		= 11,

	RTW_REGD_WW,
	RTW_REGD_MAX
};

+2 −0
Original line number Diff line number Diff line
@@ -519,6 +519,8 @@ rtw_regd_alt[RTW_REGD_MAX] = {
	DECL_REGD_ALT(RTW_REGD_UKRAINE, RTW_REGD_ETSI),
	DECL_REGD_ALT(RTW_REGD_MEXICO, RTW_REGD_FCC),
	DECL_REGD_ALT(RTW_REGD_CN, RTW_REGD_ETSI),
	DECL_REGD_ALT(RTW_REGD_QATAR, RTW_REGD_ETSI),
	DECL_REGD_ALT(RTW_REGD_UK, RTW_REGD_ETSI),
};

bool rtw_regd_has_alt(u8 regd, u8 *regd_alt)