You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ar...@apache.org on 2021/09/24 05:49:02 UTC

[incubator-nuttx-apps] branch master updated: wapi: add 5g channel map in wapi

This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new ab3cca4  wapi: add 5g channel map in wapi
ab3cca4 is described below

commit ab3cca4ae16d05631f947def923645e6651e7779
Author: liuyang34 <li...@xiaomi.com>
AuthorDate: Thu Sep 23 00:03:27 2021 -0700

    wapi: add 5g channel map in wapi
    
    Signed-off-by: liuyang34 <li...@xiaomi.com>
---
 wireless/wapi/src/wireless.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/wireless/wapi/src/wireless.c b/wireless/wapi/src/wireless.c
index f576f8d..cf3f2c2 100644
--- a/wireless/wapi/src/wireless.c
+++ b/wireless/wapi/src/wireless.c
@@ -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
           {