mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-03 10:30:58 +02:00
fix(wifi): fix country code PK miss 2.4G permission
This commit is contained in:
@@ -868,8 +868,9 @@ const wifi_regulatory_t regulatory_data[] = {
|
||||
},
|
||||
/* ESP_WIFI_REGULATORY_TYPE_PK */
|
||||
{
|
||||
1, /* Number of rules */
|
||||
2, /* Number of rules */
|
||||
{
|
||||
{ 1, 14, 2, 30, 0, 0 }, /* chan:1~14, max_bw:40M, max_power:30(dBm), dfs:0, reserved.*/
|
||||
{ 149, 173, 3, 30, 0, 0 }, /* chan:149~173, max_bw:80M, max_power:30(dBm), dfs:0, reserved.*/
|
||||
}
|
||||
},
|
||||
@@ -1389,8 +1390,9 @@ const wifi_regulatory_t regulatory_data[] = {
|
||||
},
|
||||
/* ESP_WIFI_REGULATORY_TYPE_PK */
|
||||
{
|
||||
0, /* Number of rules */
|
||||
1, /* Number of rules */
|
||||
{
|
||||
{ 1, 14, 2, 30, 0, 0 }, /* chan:1~14, max_bw:40M, max_power:30(dBm), dfs:0, reserved.*/
|
||||
}
|
||||
},
|
||||
/* ESP_WIFI_REGULATORY_TYPE_TG */
|
||||
|
@@ -626,7 +626,7 @@ class DBParser(object):
|
||||
pname = self._powerdup[pname]
|
||||
b = self._bands[bname]
|
||||
p = self._power[pname]
|
||||
if (b.start >= 2400 and b.end <= 2494) or (b.start >= 5150 and b.end <= 5895):
|
||||
if (b.start >= 2400 and b.end <= 2500) or (b.start >= 5000 and b.end <= 5900):
|
||||
try:
|
||||
channel_tuple = self.find_channel(b.start, b.end)
|
||||
b.start = channel_tuple[0]
|
||||
|
Reference in New Issue
Block a user