我最近设置了我的Raspberry Pi作为家庭网络的AP /路由器.在线使用了很多教程,我终于成功但遇到了一个严重的问题:hostapd在/ var/log/syslog中反复宣布"由于本地deauth请求而失效".
这种重复错误会定期将客户从AP上移开,使其无用.RPi似乎仍然有互联网连接; 问题只影响本地网络.
我已经在网上详细研究了这个问题,似乎没有人能得到一个好的答案.一些可能性包括一个不正确的wifi加密狗驱动程序或wifi芯片组,我还没有尝试改变,因为我不知道如何这样做(我对这个相对较新!).信号强度应该不是问题(我的RPi就在我的电脑旁边).
我很感激你们所有人的想法.如果您需要更多详细信息,请与我们联系.
据我所知,到目前为止,hostapd是一个能够进行一些网络配置的二进制文件.
但是,要启用hostapd调试级别,是否需要重建二进制文件?我可以采取其他方法而不是重建一个新方法吗?
我有一个运行 hostapd 和 dnsmasq 的嵌入式系统作为 wifi 接入点。客户端(Macbook pro、戴尔笔记本电脑、iPhone、Android 平板电脑)与 AP 关联/身份验证和获取 IP 地址之间的时间非常重复,需要 11 秒。
看来多个 dhcpdiscover/offers 几乎同时通过,然后是 dhcprequest 和 dhcpack:
Apr 5 23:27:01 AP daemon.info hostapd: wlan0-ap: STA b8:e8:56:2d:45:ae IEEE 802.11: authenticated
Apr 5 23:27:01 AP daemon.info hostapd: wlan0-ap: STA b8:e8:56:2d:45:ae IEEE 802.11: associated (aid 2)
Apr 5 23:27:01 AP daemon.info hostapd: wlan0-ap: STA b8:e8:56:2d:45:ae RADIUS: starting accounting session 5521BC1F-00000007
Apr 5 23:27:01 AP daemon.info hostapd: wlan0-ap: STA b8:e8:56:2d:45:ae WPA: pairwise key handshake completed (RSN)
Apr 5 23:27:13 AP …Run Code Online (Sandbox Code Playgroud) 我正在使用以下命令hostapd在 android 设备上运行adb shell。
hostapd -B /data/misc/wifi/hostapd.conf
Run Code Online (Sandbox Code Playgroud)
它给了我以下日志
04-04 12:33:23.276 3052 3052 E hostapd : Using interface wlan0 with hwaddr 00:0a:f5:33:62:98 and ssid "SSID"
04-04 12:33:23.385 712 712 I cnss-daemon: RTM_NEWROUTE Indication
04-04 12:33:23.387 800 3045 I LOWI-8.2.0.2.b: [LOWI-Scan] get_intf_mode: WLAN interface type 3, err 0
04-04 12:33:23.398 3052 3052 I hostapd : wlan0: interface state UNINITIALIZED->ENABLED
04-04 12:33:23.398 3052 3052 I hostapd : wlan0: AP-ENABLED
04-04 15:36:35.520 3046 3046 D hostapd : wlan0: Setup of …Run Code Online (Sandbox Code Playgroud) 我已经用TP-LINK加密狗在respberry pi 2模型B中设置了AP,现在使用TL-WN772N,问题是当我尝试与respberry pi软件狗连接时会抛出错误:
wpa_sm_step()递归调用。
IEEE 802.11:由于本地取消验证请求而被取消验证。
以及我的hostapd.conf文件中包含的内容:
interface=wlan0
driver=nl80211
ssid=SRG
hw_mode=g
channel=6
macaddr_acl=0
ignore_broadcast_ssid=0
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
wpa=2
auth_algs=1
wpa_passphrase=1234567890
Run Code Online (Sandbox Code Playgroud)
当我删除其安全性时,它可以正常工作,但是在我的情况下,我需要安全性吗?有人可以告诉我如何解决这个问题吗?任何帮助将不胜感激... 谢谢
hostapd ×5
wifi ×3
android ×1
android-wifi ×1
debian ×1
dnsmasq ×1
hotspot ×1
linux ×1
raspberry-pi ×1