xhzhou1234 发表于 2020-7-29 21:30:44

Firefly-rk3288 buildroot wifi配置AP模式时用户接入热点失败

板子上的wifi模组为AP6181,可以连到办公室wifi路由器上外网。参照https://blog.csdn.net/gilzhy/article/details/9098031使用hostapd+dnsmasq进行配置,如下: 1、配置hostapd# cat /etc/hostapd.confinterface=wlan0driver=nl80211ssid=wthw_mode=gchannel=11dtim_period=1rts_threshold=2347fragm_threshold=2346macaddr_acl=0auth_algs=3ieee80211n=0wpa=3wpa_passphrase=qwert8642wpa_key_mgmt=WPA-PSKwpa_pairwise=TKIPrsn_pairwise=CCMP 2、配置dnsmasq # cat /etc/dnsmasq.confinterface=wlan0bind-interfacesexcept-interface=lodhcp-range=192.168.2.10,192.168.2.20,12hdhcp-option=3,192.168.2.1dhcp-option=6,223.5.5.5 3、路由规则脚本 # cat home/wtap#!/bin/sh iptables -Fiptables -Xiptables -t nat -Fiptables -t nat -Xiptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth0 -j MASQUERADEiptables -A FORWARD -s 192.168.2.0/24 -o eth0 -j ACCEPTiptables -A FORWARD -d 192.168.2.0/24 -m conntrack --ctstate ESTABLISHED,RELATED -i eth0 -j ACCEPT 4、打开路由转发# cat /etc/sysctl.conf# /etc/sysctl.conf - Configuration file for setting system variables# See /etc/sysctl.d/ for additional system variables.# See sysctl.conf (5) for information. # Uncomment the next line to enable packet forwarding for IPv4net.ipv4.ip_forward=1 5、启动AP # killall namedkillall: named: no process killed# killall hostapdkillall: hostapd: no process killed# ifconfig wlan0 192.168.2.1## hostapd -B /etc/hostapd.confConfiguration file: /etc/hostapd.conf wl_cfg80211_del_station: Disconnect STA : ff:ff:ff:ff:ff:ff scb_val.val 3Using interface wlan0 with hwaddr 94:a1:a2:1b:44:f2 and ssid "wt" dhd_wl_ioctl_set_intiovar: set int iovar ndoe failed, ERR -23 dhd_ndo_enable: failed to enabe ndo to 0, retcode = -23 CFG80211-ERROR) wl_cfg80211_start_ap : wl_cfg80211_start_ap: Disabling NDO Failed -23 wl_cfg80211_set_channel: netdev_ifidx(4), chan_type(1) target channel(11) wl_iw_event: Link UP with 94:a1:a2:1b:44:f2 wl_notify_connect_status_ap: ** AP/GO Link up event ** CFG80211-ERROR) wl_cfg80211_set_scb_timings : set 'scb_probe' failed, error = -23 CFG80211-ERROR) wl_cfg80211_start_ap : scb setting failedwlan0: interface state UNINITIALIZED->ENABLEDwlan0: AP-ENABLED# /etc/init.d/dnsmasq restartTerminated# echo 1 >/proc/sys/net/ipv4/ip_forward# ./home/wtap### ifconfigeth0      Link encap:EthernetHWaddr 9E:40:B6:56:5B:3A          inet addr:192.168.1.32Bcast:192.168.1.255Mask:255.255.255.0          inet6 addr: 240e:390:8bc:bd30::3/128 Scope:Global          inet6 addr: fe80::7f55:611f:b93:9e4b/64 Scope:Link          UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1          RX packets:104 errors:0 dropped:0 overruns:0 frame:0          TX packets:121 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 txqueuelen:1000          RX bytes:10476 (10.2 KiB)TX bytes:10998 (10.7 KiB)          Interrupt:40 lo      Link encap:Local Loopback          inet addr:127.0.0.1Mask:255.0.0.0          inet6 addr: ::1/128 Scope:Host          UP LOOPBACK RUNNINGMTU:65536Metric:1          RX packets:72 errors:0 dropped:0 overruns:0 frame:0          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 txqueuelen:1          RX bytes:5328 (5.2 KiB)TX bytes:5328 (5.2 KiB) wlan0   Link encap:EthernetHWaddr 94:A1:A2:1B:44:F2          inet addr:192.168.2.1Bcast:192.168.2.255Mask:255.255.255.0          inet6 addr: fe80::b4fd:dbfd:d93d:2769/64 Scope:Link          UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1          RX packets:0 errors:0 dropped:0 overruns:0 frame:0          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 txqueuelen:1000          RX bytes:0 (0.0 B)TX bytes:6152 (6.0 KiB) 6、打开手机WLAN可以看到热点“wt”,连接该热点 板子上log如下:# wl_notify_connect_status_ap: connected device b0:e1:7e:3c:23:38 CFG80211-ERROR) wl_cfg80211_change_station : WLC_SCB_AUTHORIZE sta_flags_mask not set ETHER_TYPE_802_1X : ver 2, type 3, replay 1 ETHER_TYPE_802_1X : ver 1, type 3, replay 1 ETHER_TYPE_802_1X : ver 2, type 3, replay 2 ETHER_TYPE_802_1X : ver 1, type 3, replay 2 ETHER_TYPE_802_1X : ver 2, type 3, replay 3 ETHER_TYPE_802_1X : ver 1, type 3, replay 3 wl_notify_connect_status_ap: event WLC_E_DISASSOC_IND(12) status 0 reason 8 wl_notify_connect_status_ap: disassociated device b0:e1:7e:3c:23:38 wl_cfg80211_del_station: Disconnect STA : b0:e1:7e:3c:23:38 scb_val.val 3 wl_notify_connect_status_ap: connected device b0:e1:7e:3c:23:38 CFG80211-ERROR) wl_cfg80211_change_station : WLC_SCB_AUTHORIZE sta_flags_mask not set ETHER_TYPE_802_1X : ver 2, type 3, replay 1 ETHER_TYPE_802_1X : ver 1, type 3, replay 1 ETHER_TYPE_802_1X : ver 2, type 3, replay 2 ETHER_TYPE_802_1X : ver 1, type 3, replay 2 ETHER_TYPE_802_1X : ver 2, type 3, replay 3 ETHER_TYPE_802_1X : ver 1, type 3, replay 3 wl_notify_connect_status_ap: event WLC_E_DISASSOC_IND(12) status 0 reason 8 wl_notify_connect_status_ap: disassociated device b0:e1:7e:3c:23:38 wl_cfg80211_del_station: Disconnect STA : b0:e1:7e:3c:23:38 scb_val.val 3 wl_notify_connect_status_ap: connected device b0:e1:7e:3c:23:38 CFG80211-ERROR) wl_cfg80211_change_station : WLC_SCB_AUTHORIZE sta_flags_mask not set ETHER_TYPE_802_1X : ver 2, type 3, replay 1 ETHER_TYPE_802_1X : ver 1, type 3, replay 1 ETHER_TYPE_802_1X : ver 2, type 3, replay 2 ETHER_TYPE_802_1X : ver 1, type 3, replay 2 ETHER_TYPE_802_1X : ver 2, type 3, replay 3 ETHER_TYPE_802_1X : ver 1, type 3, replay 3 手机端一直处于提示“正在连接‘wt’”,最后提示超时,连接失败。请问,如何解决?非常感谢!

z597449205 发表于 2021-4-26 09:28:46

楼主您好,我遇到了和您同样的问题,请问当时怎么解决的?

flyhigh921 发表于 2022-2-18 12:03:38

请问楼上两位大神解决这个问题了么?我也遇到了

warmblood 发表于 2022-3-3 20:19:33

这个问题解决了吗 ?
页: [1]
查看完整版本: Firefly-rk3288 buildroot wifi配置AP模式时用户接入热点失败