wapi: add 5g channel map in wapi

Signed-off-by: liuyang34 <liuyang34@xiaomi.com>
This commit is contained in:
liuyang34 2021-09-23 00:03:27 -07:00 committed by archer
parent 7cbe2db2c9
commit ab3cca4ae1

View File

@ -365,6 +365,10 @@ static int wapi_scan_event(FAR struct iw_event *event,
{
info->freq = 2484;
}
else if (event->u.freq.m >= 36 && event->u.freq.m <= 165)
{
info->freq = 5000 + 5 * event->u.freq.m;
}
}
else
{