色哟哟视频在线观看-色哟哟视频在线-色哟哟欧美15最新在线-色哟哟免费在线观看-国产l精品国产亚洲区在线观看-国产l精品国产亚洲区久久

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示

AR1021X使用hostapd配置AP熱點注意事項

通信模塊 ? 2019-10-11 23:15 ? 次閱讀

在應用AR1021X模塊化集成時,一些應用需要用模塊來做soft ap使用,這就牽涉到hostapd配置問題,如果配置不好,是沒有SSID熱點出來!模塊有支持雙頻的,有只支持單頻的,具體要認真閱讀模塊規(guī)格書,所以配置的時候要留意!

一般根據對應的Kernel內核版本提供的驅動包,保障物理連接正常,供電穩(wěn)定,正常編譯驅動后,就能加載成功,并正常使用!

以下案例現象:使用hostapd配置AP熱點,ap熱點出不來!


log信息如下:



ostapd -dd -e /dev/urandom /etc/hostapd.conf &

# random: Invalid entropy file /dev/urandom

random: TryinADDRCONF(NETDEV_UP): wlan0: link is not ready

g to read entropy from /dev/random

Get randomness: len=20 entropy=0

random: Updated entropy file /dev/urandom (own_pool_ready=0)

Configuration file: /etc/hostapd.conf

nl80211: interface wlan0 in phy phy0

rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0

nl80211: Supports Probe Response offload in AP mode

nl80211: Disable use_monitor with device_ap_sme since no monitor mode support detected

nl80211: Add own interface ifindex 4

nl80211: Set mode ifindex 4 iftype 3 (AP)

nl80211: Setup AP - device_ap_sme=1 use_monitor=0

nl80211: Subscribe to mgmt frames with AP handle 0x102ee00 (device SME)

nl80211: Register frame type=0xd0 nl_handle=0x102ee00

nl80211: Register frame match - hexdump(len=0): [NULL]

nl80211: Enable Probe Request reporting nl_preq=0x102ed98

nl80211: Register frame type=0x40 nl_handle=0x102ed98

nl80211: Register frame match - hexdump(len=0): [NULL]


BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)

nl80211: Regulatory information - country=US

nl80211: 2402-2472 @ 40 MHz

nl80211: 5170-5250 @ 40 MHz

nl80211: 5250-5330 @ 40 MHz

nl80211: 5490-5730 @ 40 MHz

nl80211: 5735-5835 @ 40 MHz


nl80211: Added 802.11b mode based on 802.11g information

Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=30 dBm

Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=30 dBm

Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=30 dBm

Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=30 dBm

Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=30 dBm

Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=30 dBm

Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=30 dBm

Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=30 dBm

Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=30 dBm

Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=30 dBm

Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=30 dBm

Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=30 dBm

Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=30 dBm

Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=30 dBm

Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=30 dBm

Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=30 dBm

Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=30 dBm

Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=30 dBm

Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=30 dBm

Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=30 dBm

Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=30 dBm


Completing interface initialization

Mode: IEEE 802.11g Channel: 6 Frequency: 2437 MHz

nl80211: Set freq 2437 (ht_enabled=1 sec_channel_offset=0)

RATE[0] rate=10 flags=0x1

RATE[1] rate=20 flags=0x1

RATE[2] rate=55 flags=0x1

RATE[3] rate=110 flags=0x1

RATE[4] rate=60 flags=0x0

RATE[5] rate=90 flags=0x0

RATE[6] rate=120 flags=0x0

RATE[7] rate=180 flags=0x0

RATE[8] rate=240 flags=0x0

RATE[9] rate=360 flags=0x0

RATE[10] rate=480 flags=0x0

RATE[11] rate=540 flags=0x0


wlan0: Flushing old station entries

wlan0: Deauthenticate all stations

wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0

wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0

wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0

wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0


Using interface wlan0 with hwaddr 38:e2:6e:0c:04:1f and ssid 'ar1021_wifi'

Deriving WPA PSK based on passphrase

SSID - hexdump_ascii(len=11):

61 72 31 30 32 31 5f 77 69 66 69 ar1021_wifi

PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]

PSK (from passphrase) - hexdump(len=32): [REMOVED]

random: Cannot read from /dev/random: Resource tempoADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

rarily unavailable

random: Got 0/20 bytes from /dev/random

random: Only 0/20 bytes of strong random data available from /dev/random

random: Not enough entropy pool available for secure operations

WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects

Get randomness: len=32 entropy=0

GMK - hexdump(len=32): [REMOVED]

Get randomness: len=32 entropy=0

Key Counter - hexdump(len=32): [REMOVED]

WPA: Delay group state machine start until Beacon frames have been configured


hostapd_eid_deny_mac num_deny_mac:0

hostapd_eid_accept_mac num_accept_mac:0

nl80211: Set beacon (beacon_set=0)

WPA: Start group state machine to set initial keys

WPA: group state machine entering state GTK_INIT (VLAN-ID 0)

Get randomness: len=16 entropy=0

GTK - hexdump(len=32): [REMOVED]

WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)

wpa_driver_nl80211_set_key: ifindex=4 alg=2 addr=0x6a828 key_idx=1 set_tx=1 seq_len=0 key_len=32

broadcast key

wpa_driver_nl80211_set_operstate: operstate 0->1 (UP)

netlink: Operstate: linkmode=-1, operstate=6

Failed to set TX queue parameters for queue 0.

Failed to set TX queue parameters for queue 1.

Failed to set TX queue parameters for queue 2.

Failed to set TX queue parameters for queue 3.


wlan0: Setup of interface done.

RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()

nl80211: Ignore interface down event since interface wlan0 is up

RTM_NEWLINK: operstate=1 ifi_flags=0x1043 ([UP][RUNNING])

RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

nl80211: if_removed already cleared - ignore event

RTM_NEWLINK: operstate=1 ifi_flags=0x1003 ([UP])

RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

nl80211: if_removed already cleared - ignore event

RTM_NEWLINK: operstate=1 ifi_flags=0x1003 ([UP])

RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

nl80211: if_removed already cleared - ignore event

nl80211: Event message available

nl80211: Regulatory domain change

wlan0: Event CHANNEL_LIST_CHANGED (31) received

Unknown event 31

nl80211: Event message available

nl80211: Regulatory domain change

wlan0: Event CHANNEL_LIST_CHANGED (31) received

Unknown event 31

RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

nl80211: if_removed already cleared - ignore event

RTM_NEWLINK: operstate=1 ifi_flags=0x11003 ([UP][LOWER_UP])

netlink: Operstate: linkmode=-1, operstate=6

RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

nl80211: if_removed already cleared - ignore event

RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

nl80211: if_removed already cleared - ignore event



hostapd.conf配置如下:


interface=wlan0

driver=nl80211

ssid=ar1021_wifi

channel=6

hw_mode=g

ignore_broadcast_ssid=0

auth_algs=1

wpa=3

wpa_passphrase=88888888

wpa_key_mgmt=WPA-PSK

wpa_pairwise=TKIP

rsn_pairwise=CCMP



iwconfig:


# iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

wlan0 IEEE 802.11abgn Mode:Master Frequency:2.437 GHz Tx-Power=17 dBm

Retry long limit:7 RTS thr:off Fragment thr:off

Power Management:off

p2p0 IEEE 802.11abgn ESSID:off/any

Mode:Managed Access Point: Not-Associated Tx-Power=17 dBm

Retry long limit:7 RTS thr:off Fragment thr:off

Encryption key:off

Power Management:off



以上信息很明顯,是針對只能支持ISM5.8G頻段的模塊,hostapd.conf配置成了ISM2.4G,只要進行重新配置就可以了!同時提醒,雙頻是分時雙頻,也就是工作時候只能支持一種,但是有兩種頻供選!或者理解成雙頻供選擇,實際選用一種!

針對AR1021X系列WiFi模塊(SR6225UE、SR6224UE、SR6221UE、SR6235UE、SR5223UD),編譯加載的問題,可以提供Log信息,配合有效分析!


聲明:本文內容及配圖由入駐作者撰寫或者入駐合作網站授權轉載。文章觀點僅代表作者本人,不代表電子發(fā)燒友網立場。文章及其配圖僅供工程師學習之用,如有內容侵權或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報投訴
  • AR1021X
    +關注

    關注

    0

    文章

    3

    瀏覽量

    1845
收藏 人收藏

    評論

    相關推薦

    如何為住宅配置靜態(tài)IP:步驟與注意事項

    為住宅配置靜態(tài)IP地址,通常涉及以下步驟和注意事項
    的頭像 發(fā)表于 10-24 08:02 ?305次閱讀

    ADS855x的驅動器電路設計注意事項

    電子發(fā)燒友網站提供《ADS855x的驅動器電路設計注意事項.pdf》資料免費下載
    發(fā)表于 10-18 11:50 ?1次下載
    ADS855<b class='flag-5'>x</b>的驅動器電路設計<b class='flag-5'>注意事項</b>

    TMS320DM644x注意事項

    電子發(fā)燒友網站提供《TMS320DM644x注意事項.pdf》資料免費下載
    發(fā)表于 10-16 11:35 ?0次下載
    TMS320DM644<b class='flag-5'>x</b>熱<b class='flag-5'>注意事項</b>

    DM64xx、DM64x和C6000器件的散熱注意事項

    電子發(fā)燒友網站提供《DM64xx、DM64x和C6000器件的散熱注意事項.pdf》資料免費下載
    發(fā)表于 10-15 09:15 ?0次下載
    DM64xx、DM64<b class='flag-5'>x</b>和C6000器件的散熱<b class='flag-5'>注意事項</b>

    PLC應用中的AM335x可靠性注意事項

    電子發(fā)燒友網站提供《PLC應用中的AM335x可靠性注意事項.pdf》資料免費下載
    發(fā)表于 10-12 11:33 ?0次下載
    PLC應用中的AM335<b class='flag-5'>x</b>可靠性<b class='flag-5'>注意事項</b>

    繞線電感定制的注意事項

    電子發(fā)燒友網站提供《繞線電感定制的注意事項.docx》資料免費下載
    發(fā)表于 09-20 11:24 ?0次下載

    AM574x散熱注意事項

    電子發(fā)燒友網站提供《AM574x散熱注意事項.pdf》資料免費下載
    發(fā)表于 09-19 11:25 ?0次下載
    AM574<b class='flag-5'>x</b>散熱<b class='flag-5'>注意事項</b>

    調試SsitaraAM2x單片機注意事項

    電子發(fā)燒友網站提供《調試SsitaraAM2x單片機注意事項.pdf》資料免費下載
    發(fā)表于 09-11 14:13 ?0次下載
    調試SsitaraAM2<b class='flag-5'>x</b>單片機<b class='flag-5'>注意事項</b>

    CC13xx/CC26xx硬件配置和PCB設計注意事項

    電子發(fā)燒友網站提供《CC13xx/CC26xx硬件配置和PCB設計注意事項.pdf》資料免費下載
    發(fā)表于 09-03 11:12 ?0次下載
    CC13xx/CC26xx硬件<b class='flag-5'>配置</b>和PCB設計<b class='flag-5'>注意事項</b>

    LiFePO4設計注意事項

    電子發(fā)燒友網站提供《LiFePO4設計注意事項.pdf》資料免費下載
    發(fā)表于 09-03 09:24 ?0次下載
    LiFePO4設計<b class='flag-5'>注意事項</b>

    采用高側N-MOSFET的堆疊式BQ769x2設計注意事項

    電子發(fā)燒友網站提供《采用高側N-MOSFET的堆疊式BQ769x2設計注意事項.pdf》資料免費下載
    發(fā)表于 08-27 10:10 ?0次下載
    采用高側N-MOSFET的堆疊式BQ769<b class='flag-5'>x</b>2設計<b class='flag-5'>注意事項</b>

    InModbus2配置文件的注意事項

    大家好,由于最近經常有人問我InModbus2的配置文件如何編輯來達到想要的結果,所以發(fā)布一些關于InModbus2的配置文件注意事項,后期我還會發(fā)布一些示例來供大家參考讓大家都掌握一些簡單
    發(fā)表于 07-26 07:21

    芯海通用 MCU 應用筆記:CS32F03x設計注意事項

    本技術文檔匯總了 CS32F03x (包括 RA) 在設計,開發(fā),調試過程中經常遇到的問題和需要注意事項,旨在幫忙用戶快速使用 CS32F03x系列 MCU。*附件:應用筆記:CS3
    發(fā)表于 05-16 11:02

    FMD LINK 使用注意事項

    電子發(fā)燒友網站提供《FMD LINK 使用注意事項.pdf》資料免費下載
    發(fā)表于 05-06 10:11 ?0次下載

    CYW43455 hostapd配置5G 80MHZ啟AP失敗怎么解決?

    I.M6 +CYW43455模塊, 用hostapd 配置5G 11ac 80MHZ 啟AP 失敗,11ac 40mhz 是正常的。 確認CYW43455的規(guī)格是是支持11ac 80MHZ的帶寬
    發(fā)表于 03-01 14:03
    主站蜘蛛池模板: 久久亚洲精品AV成人无码| 可以看的黄页的网站| 快穿之诱受双性被灌满h| 爽娇妻快高h| 儿子操妈妈| 少妇伦子伦情品无吗| 把英语老师强奷到舒服动态图| 牛牛超碰 国产| av网站视频在线观看| 啪啪漫画无遮挡全彩h同人| a在线观看视频| 4455永久在线毛片观看| 久久全国免费观看视频| 中文字幕久精品视频在线观看| 久久久午夜精品福利内容 | 久久re热在线视频精99| 亚洲男同tv| 久久久性色精品国产免费观看| 中文在线日韩亚洲制服| 免费无码又爽又黄又刺激网站| 99热在线精品视频| 日韩欧美一区二区中文字幕| 国产白色视频在线观看w| 小黄鸭YELLOWDUCK7596| 混乱家庭电影完整版在线看| 欧美另类z0z000高清| 超碰在线视频人人AV| 四川少妇大战4黑人| 后式大肥臀国产在线| 最近中文字幕免费高清MV视频| 欧美内射AAAAAAXXXXX| 丰满女友bd高清在线观看| 亚洲国产区中文在线观看| 久久亚洲精品中文字幕| jizz非洲| 无码一区二区在线欧洲| 黑色丝袜美女被网站| 97在线观看成人免费视频| 四虎免费影院| 久久草这里全是精品香蕉频线观| 99久久久久国产精品免费|