Home > other >  Opened a ap on Linux, the question now is free time disconnected, a moment without will disconnect.
Opened a ap on Linux, the question now is free time disconnected, a moment without will disconnect.

Time:09-17


Look at hostapd log and found the following a period of
Wlp5s0: Event RX_MGMT (20) received
MGMT: : disassoc
Disassocation: STA:=77:88-77:88-77:88 reason_code=8
Wlp5s0: AP - STA - DISCONNECTED 77:88, 77:88-77:88
Wlp5s0: STA 77:88-77:88-77:88 WPA: event notification
Wpa_driver_nl80211_set_key: ifindex=3 (wlp5s0) alg=0 addr=0 x12bc47930 key_idx=0 1 seq_len set_tx==0 key_len=0
Addr=77, 88:77-88:77-88
WPA: 77, 88:77-88:77-88 WPA_PTK if state DISCONNECTED
WPA: 77, 88:77-88:77-88 WPA_PTK if state the INITIALIZE
Wpa_driver_nl80211_set_key: ifindex=3 (wlp5s0) alg=0 addr=0 x12bc47930 key_idx=0 1 seq_len set_tx==0 key_len=0
Addr=77, 88:77-88:77-88
Nl80211: Set the STA flags - ifname=wlp5s0 addr=77:88-77:88-77:88 total_flags=0 x4 flags_or=0 x0 flags_and=0 xfffffffe authorized=0
Wlp5s0: STA 77, 88:77-88:77-88, IEEE 802.1 X: unauthorizing port
Wlp5s0: STA 77, 88:77-88:77-88, IEEE 802.11: disassociated
Nl80211: sta_remove - & gt; DEL_STATION wlp5s0:77-88, 77:88-77:88 - & gt; 0 (Success)
Wlp5s0: STA 77:88-77:88-77:88 MLME: MLME - DISASSOCIATE. Indication (77:88-77:88-77, 88, 8)
Wlp5s0: STA 77:88-77:88-77:88 MLME: MLME - DELETEKEYS. Request (77:88-77:88-77:88)
Wpa_driver_nl80211_set_key: ifindex=3 (wlp5s0) alg=0 addr=0 x12bc47930 key_idx=0 1 seq_len set_tx==0 key_len=0
Addr=77, 88:77-88:77-88

My configuration related to the following
Ctrl_interface=/var/run/hostapd
Ctrl_interface_group=wheel

# Some usable default Settings...
Macaddr_acl=0
Auth_algs=1
Ignore_broadcast_ssid=0

# Uncomment these for base WPA & amp; Connected support with a pre - Shared key
Wpa=2
Wpa_key_mgmt=WPA wpa2-psk
# wpa_pairwise=TKIP
Wpa_pairwise=CCMP
Rsn_pairwise=CCMP

# DO NOT FORGET TO SET A WPA PASSPHRASE!!
Wpa_passphrase=77887788

Most # modern wireless drivers in the kernel need driver=nl80211
Driver=nl80211

# Customize these for local configuration...
Interface=wlp5s0
Hw_mode=g
Channel 9=
Ssid=77887788

CodePudding user response:

Pay attention to the reason_code=8
  • Related