qcacmn: Map Korea to channel_map_us instead of channel_map_eu

In the current implementation, Korea is mapped to channel_map_eu.
Korea is mapped to 5G regdomain APL9 which supports 80MHz channels
upto 161. However, the Europe opclass supports 80 MHz channels only
upto 128. As a result, when the AP tries to switch to the 80 MHz channel
149, the opclass validation logic finds this invalid and fills wrong
channel and opclass number in the ECSA IE. This leads the STA to
disconnect.

Fix this by mapping Korea to channel_map_global for Tx, which will map
it to the Global Operating Class by the following logic:
US Op Class Table : Countries having FCC DFS Region Eg: USA , Canada
EU Op Class Table : Countries having ETSI DFS Region Eg: Denmark
CN Op Class Table : Countries having China DFS Region Eg : China
JP Op Class Table : Countries having MKK DFS Region Eg : Japan
Global Op Class Table : All other countries

Change-Id: I5c6ff14888b218bc4fce707335ba53f60f579e19
CRs-Fixed: 2692802
This commit is contained in:
Ananya Barat 2020-06-03 12:58:32 +05:30 • committed by nshrivas
commit 1aa085fcd2

View file

@ -1016,7 +1016,7 @@ void reg_init_channel_map(enum dfs_reg dfs_region)
channel_map = channel_map_china;
break;
case DFS_KR_REGION:
channel_map = channel_map_eu;
channel_map = channel_map_global;
break;
}
}