Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    【FAQ】全志R329如何利用wpa_cli设置地区代码?

    其它全志芯片讨论区
    r329 r328 r818 faq 技术支持
    1
    1
    1460
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • q1215200171
      budbool LV 9 last edited by xiaowenge

      问题背景

      硬件:R328+ Wi-Fi模组(XRADIO)
      软件:Tina3.0及以上
      说明:该FAQ旨在记录XRADIO驱动常见的调试Tips。与具体驱动相关,具有一般性。

      问题简述

      客户需求,如何获取和设置地区代码?

      问题分析

      地区码:表示现有的国家、独立机构或特殊地理政治区域的名称代码。

      区别于

      移动网络代码:是与移动设备国家代码(Mobile Country Code,MCC)(也称为“MCC / MNC”)相结合,以用来表示唯一一个的移动设备的网络运营商。这些运营商可以是使用的GSM/LTE、CDMA、iDEN、TETRA和通用移动通讯系统的公共陆基移动网亦或是卫星网络。

      当前xr829驱动并没有透出接口用来获取和设置地区代码。

      解决方法

      借用wpa_cli工具来获取和设置:

      root@TinaLinux:/# wpa_cli -i wlan0 -p /etc/wifi/sockets set country US
      OK
      root@TinaLinux:/# wpa_cli -i wlan0 -p /etc/wifi/sockets get country
      US
      
      1 Reply Last reply Reply Quote Share 1
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策