Hostapd 给出的 psk 与 fitbit aria 秤不匹配

Hostapd 给出的 psk 与 fitbit aria 秤不匹配

我一直在尝试将我的 fitbit aria 连接到 orange pi(类似 raspberry pi)。

我已经使用此配置连接了客户端,但是 fitbit aria 给了我AP-STA-POSSIBLE-PSK-MISMATCH来自 hostapd 的错误。

以下是hostapd

wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA 20:f8:5e:b3:0e:fd IEEE 802.11: authenticated
wlan0: STA 20:f8:5e:b3:0e:fd IEEE 802.11: associated (aid 1)
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 20:f8:5e:b3:0e:fd
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 20:f8:5e:b3:0e:fd
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 20:f8:5e:b3:0e:fd
wlan0: STA 20:f8:5e:b3:0e:fd IEEE 802.11: deauthenticated due to local deauth request
wlan0: STA 20:f8:5e:b3:0e:fd IEEE 802.11: authenticated
wlan0: STA 20:f8:5e:b3:0e:fd IEEE 802.11: associated (aid 1)
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 20:f8:5e:b3:0e:fd
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 20:f8:5e:b3:0e:fd
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 20:f8:5e:b3:0e:fd
wlan0: AP-STA-POSSIBLE-PSK-MISMATCH 20:f8:5e:b3:0e:fd
wlan0: STA 20:f8:5e:b3:0e:fd IEEE 802.11: deauthenticated due to local deauth request

这是hostapd.conf配置文件

interface=wlan0
driver=nl80211
ssid=orangepi
hw_mode=b
channel=6
wpa=2
auth_algs=1
wpa_passphrase=passwordpasswordpassword
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
rsn_pairwise=CCMP
#wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
bridge=br0
wmm_enabled=0
logger_stdout=1
logger_stdout_level=2

我用来制作 ap 并桥接 eth0 的脚本

#/bin/sh
killall wpa_supplicant
brctl addbr br0
brctl addif br0 eth0 wlan0

dhclient br0

hostapd /etc/hostapd/hostapd.conf

有人有主意吗?

答案1

最终是 dhcp 问题。我没有设置 dnsmasq 来将 dhcp 中继到网关。

我在脚本中添加了两行:

killall dnsmasq

dnsmasq --dhcp-relay=<local address>,<server address>

并替换 <> 内的 IP 地址,瞧!

它确实有效,我不会说它特别稳定啊哈。

#/bin/sh
killall wpa_supplicant
killall dnsmasq
brctl addbr br0
brctl addif br0 eth0 wlan0

dhclient br0
dnsmasq --dhcp-relay=<local address>,<server address>
hostapd /etc/hostapd/hostapd.conf

相关内容