Initialize channel_map to "us" at regulatory init.
Use NUM_6GHZ_CHANNELS to get 6Ghz channel numbers
instead of MAX_6GHZ_CHANNEL.

Change-Id: Ifed996c1a528c8a3c0a29d3959f17dff6d298193
CRs-Fixed: 2949971
Этот коммит содержится в:
Liangwei Dong
2019-11-26 16:49:08 +08:00
коммит произвёл nshrivas
родитель 8bc9b42eb3
Коммит 7ce41f14c1
2 изменённых файлов: 12 добавлений и 6 удалений

Просмотреть файл

@@ -341,7 +341,7 @@ QDF_STATUS wlan_regulatory_init(void)
reg_err("failed to register reg psoc obj create handler");
goto unreg_pdev_create;
}
channel_map = channel_map_global;
reg_debug("regulatory handlers registered with obj mgr");
return status;