RTW89_REGD_MAX_COUNTRY_NUM
DECLARE_BITMAP(block_unii4, RTW89_REGD_MAX_COUNTRY_NUM);
DECLARE_BITMAP(block_6ghz, RTW89_REGD_MAX_COUNTRY_NUM);
DECLARE_BITMAP(block_6ghz_sp, RTW89_REGD_MAX_COUNTRY_NUM);
DECLARE_BITMAP(block_6ghz_vlp, RTW89_REGD_MAX_COUNTRY_NUM);
if (num_ents > RTW89_REGD_MAX_COUNTRY_NUM) {
num_ents, RTW89_REGD_MAX_COUNTRY_NUM);
if (index == RTW89_REGD_MAX_COUNTRY_NUM ||
if (index == RTW89_REGD_MAX_COUNTRY_NUM ||
BUILD_BUG_ON(ARRAY_SIZE(rtw89_regd_map) > RTW89_REGD_MAX_COUNTRY_NUM);
return RTW89_REGD_MAX_COUNTRY_NUM;
bitmap_fill(regulatory->block_unii4, RTW89_REGD_MAX_COUNTRY_NUM);
if (enable && index != RTW89_REGD_MAX_COUNTRY_NUM)
if (enable && index != RTW89_REGD_MAX_COUNTRY_NUM)
if (index == RTW89_REGD_MAX_COUNTRY_NUM) {
bitmap_fill(regulatory->block_6ghz, RTW89_REGD_MAX_COUNTRY_NUM);
bitmap_fill(regulatory->block_6ghz_sp, RTW89_REGD_MAX_COUNTRY_NUM);
if (enable && index != RTW89_REGD_MAX_COUNTRY_NUM)
if (enable && index != RTW89_REGD_MAX_COUNTRY_NUM)
if (!enable && index != RTW89_REGD_MAX_COUNTRY_NUM)
if (!enable && index != RTW89_REGD_MAX_COUNTRY_NUM)
if (index != RTW89_REGD_MAX_COUNTRY_NUM &&
if (index != RTW89_REGD_MAX_COUNTRY_NUM &&