forum.wfido.ru  

Вернуться   forum.wfido.ru > Прочие эхи > RU.UNIX.BSD

Ответ
 
Опции темы Опции просмотра
  #1  
Старый 12.06.2021, 14:52
Sergey Anohin
Guest
 
Сообщений: n/a
По умолчанию wifi

Sergey Anohin написал(а) к All в Jun 21 13:32:06 по местному времени:

Нello!

А не подскажете ли как пофиксить сабж, чтобы он не отваливался со временем. Выглядит это таким образом, что устройство SSID видит, но не может подключиться.
В логах hostapd:

Jun 7 15:21:39 server hostapd[41074]: wlan0: STA 5a:09:c5:8c:36:73 IEEE 802.11: associated
Jun 7 15:21:39 server hostapd[41074]: wlan0: STA 5a:09:c5:8c:36:73 RADIUS: starting accounting session D2D738F4ADB95911
Jun 7 15:21:39 server hostapd[41074]: wlan0: STA 5a:09:c5:8c:36:73 WPA: pairwise key handshake completed (RSN)
Jun 7 15:27:27 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b IEEE 802.11: associated
Jun 7 15:27:27 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b RADIUS: starting accounting session 924DEE4E52CBAE67
Jun 7 15:27:27 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: pairwise key handshake completed (RSN)
Jun 7 15:31:35 server hostapd[41074]: wlan0: STA 5a:09:c5:8c:36:73 WPA: group key handshake completed (RSN)
Jun 7 15:31:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 15:41:35 server syslogd: last message repeated 1 times
Jun 7 15:41:35 server hostapd[41074]: wlan0: STA 5a:09:c5:8c:36:73 WPA: group key handshake completed (RSN)
Jun 7 15:51:35 server syslogd: last message repeated 1 times
Jun 7 15:51:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 16:01:35 server syslogd: last message repeated 1 times
Jun 7 16:01:35 server hostapd[41074]: wlan0: STA 5a:09:c5:8c:36:73 WPA: group key handshake completed (RSN)
Jun 7 16:11:39 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake failed (RSN) after 4 tries
Jun 7 16:11:39 server hostapd[41074]: wlan0: STA 5a:09:c5:8c:36:73 WPA: group key handshake failed (RSN) after 4 tries
Jun 7 16:11:39 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b IEEE 802.11: disassociated
Jun 7 16:11:39 server hostapd[41074]: wlan0: STA 5a:09:c5:8c:36:73 IEEE 802.11: disassociated
Jun 7 17:22:06 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b IEEE 802.11: associated
Jun 7 17:22:06 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b RADIUS: starting accounting session E4BD9862EFBCC56B
Jun 7 17:22:06 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: pairwise key handshake completed (RSN)
Jun 7 17:22:42 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b IEEE 802.11: disassociated
Jun 7 17:22:45 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b IEEE 802.11: associated
Jun 7 17:22:45 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b RADIUS: starting accounting session 2F8FD86F12A638F9
Jun 7 17:22:45 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: pairwise key handshake completed (RSN)
Jun 7 17:31:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 17:41:35 server syslogd: last message repeated 1 times
Jun 7 17:51:35 server syslogd: last message repeated 1 times
Jun 7 18:01:35 server syslogd: last message repeated 1 times
Jun 7 18:11:35 server syslogd: last message repeated 1 times
Jun 7 18:21:35 server syslogd: last message repeated 1 times
Jun 7 18:31:35 server syslogd: last message repeated 1 times
Jun 7 18:32:40 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d IEEE 802.11: associated
Jun 7 18:32:40 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d RADIUS: starting accounting session 33F015ABBBA898CA
Jun 7 18:32:40 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: pairwise key handshake completed (RSN)
Jun 7 18:41:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 18:41:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 18:51:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 18:51:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 19:01:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 19:01:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 19:11:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 19:11:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 19:21:35 server syslogd: last message repeated 1 times
Jun 7 19:21:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 19:31:35 server syslogd: last message repeated 1 times
Jun 7 19:31:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 19:41:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 19:41:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 19:51:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 19:51:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 20:01:35 server syslogd: last message repeated 1 times
Jun 7 20:01:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 20:11:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 20:11:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 20:21:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 20:21:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 20:31:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 20:31:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 20:41:35 server syslogd: last message repeated 1 times
Jun 7 20:41:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 20:51:35 server syslogd: last message repeated 1 times
Jun 7 20:51:36 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 21:01:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 21:01:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 21:11:35 server syslogd: last message repeated 1 times
Jun 7 21:11:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 21:21:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 21:21:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 21:31:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 21:31:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 21:41:35 server syslogd: last message repeated 1 times
Jun 7 21:41:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 21:51:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 21:51:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 22:01:35 server syslogd: last message repeated 1 times
Jun 7 22:01:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 22:11:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 22:11:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 22:21:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 22:21:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 22:31:35 server syslogd: last message repeated 1 times
Jun 7 22:31:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 22:41:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 22:41:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 22:51:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 22:51:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 23:01:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 23:01:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 23:11:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 23:11:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 23:21:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 23:21:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 23:31:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 23:31:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 23:41:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 7 23:41:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 7 23:51:35 server syslogd: last message repeated 1 times
Jun 7 23:51:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 8 00:01:35 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d WPA: group key handshake completed (RSN)
Jun 8 00:01:35 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b WPA: group key handshake completed (RSN)
Jun 8 00:07:24 server hostapd[41074]: wlan0: STA fa:5e:f0:89:2f:4b IEEE 802.11: disassociated
Jun 8 00:07:24 server hostapd[41074]: wlan0: STA a4:50:46:35:dd:4d IEEE 802.11: disassociated

Типа пару дней проработало. Если hostapd перезапустить, то все работает. Отваливается со временем.

Конфиги:
это кусок из rc.conf:

wlans_ath0="wlan0"
#createargswlan0="wlanmode hostap mode 11ng channel 6:ht/20 country RU regdomain etsi shortgi"
createargswlan0="wlanmode hostap mode 11ng"
#ifconfig_wlan0="ssid MYSSID"
hostapd_enable="YES"
hostapd_program="/usr/local/sbin/hostapd"


Это понятно что:
# cat /etc/hostapd.conf
interface=wlan0
debug=1
ctrl_interface=/var/run/hostapd
ctrlinterfacegroup=wheel
ssid=MYSSID
wpa=2
wpa_passphrase=<mykey>
wpakeymgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
channel=0
ieee80211n=1
hw_mode=g
country_code=RU
#ieee80211ac=1
ieee80211d=1
wmm_enabled=1
#ht_capab=[SНORT-GI-40]
logger_syslog=-1
loggersysloglevel=2
logger_stdout=-1
loggerstdoutlevel=2

Девайс:
ath0@pci0:1:0:0: class=0x028000 card=0x30a4168c chip=0x002e168c rev=0x01 hdr=0x00
vendor = 'Qualcomm Atheros'
device = 'AR9287 Wireless Network Adapter (PCI-Express)'
class = network
cap 01[40] = powerspec 3 supports D0 D1 D3 current D0
cap 05[50] = MSI supports 1 message
cap 10[60] = PCI-Express 2 legacy endpoint max data 128(128) RO
max read 512
link x1(x1) speed 2.5(2.5) ASPM disabled(L0s/L1)
ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected
ecap 0002[140] = VC 1 max VC0
ecap 0003[160] = Serial 1 001517ffff241412
ecap 0004[170] = Power Budgeting 1


ЗЫ чем-то мне напомнило известный баг openwrt:
ieee80211 phy0: rt2x00queuewrite_txframe: Error - Dropping frame due to full tx queue 2
который фиксился через option disassoclowack '0'


С наилучшими пожеланиями, Sergey Anohin.

--- wfido
Ответить с цитированием
Ответ


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 08:32. Часовой пояс GMT +4.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc. Перевод: zCarot