суббота, марта 15, 2008

NetworkManager & WiFi II

продолжая эпопею с WiFi наблюдаю взаимоотношения NetworkManager-а с беспроводными сетями.

есть у меня в пользовании две сети (с которыми я регулярно общаюсь), обе скрытые, одна при этом без защиты (wifi_1), другая работает в режиме auto WPA & WPA2 (wifi_2).
NM в общем случае вроде как умеет их сам находить, но как-то неуверенно... периодически он их теряет и приходится подсказывать ему руками.

другой неприятный момент, что с wifi_2 он не может нормально договориться. не помогает перевод сети в статус WPA only.

примерный монолог NetworkManager-а выглядит так:
Mar 15 18:44:59 junkyard NetworkManager: Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Mar 15 18:44:59 junkyard NetworkManager: Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Mar 15 18:44:59 junkyard NetworkManager: Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Mar 15 18:44:59 junkyard NetworkManager: Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Mar 15 18:44:59 junkyard NetworkManager: Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Mar 15 18:44:59 junkyard NetworkManager: Activation (wlan0/wireless): connection 'Auto junkyard.wifi' has security, and secrets exist. No new secrets needed.
Mar 15 18:44:59 junkyard NetworkManager: Config: added 'ssid' value 'junkyard.wifi'
Mar 15 18:44:59 junkyard NetworkManager: Config: added 'scan_ssid' value '1'
Mar 15 18:44:59 junkyard NetworkManager: Config: added 'key_mgmt' value 'WPA-PSK'
Mar 15 18:44:59 junkyard NetworkManager: Config: added 'psk' value ''
Mar 15 18:44:59 junkyard NetworkManager: Config: added 'proto' value 'WPA RSN'
Mar 15 18:44:59 junkyard NetworkManager: Config: added 'pairwise' value 'TKIP CCMP'
Mar 15 18:44:59 junkyard NetworkManager: Config: added 'group' value 'WEP40 WEP104 TKIP CCMP'
Mar 15 18:44:59 junkyard NetworkManager: Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Mar 15 18:44:59 junkyard NetworkManager: Config: set interface ap_scan to 2
Mar 15 18:44:59 junkyard NetworkManager: (wlan0) Supplicant interface state change: 0 -> 2
Mar 15 18:44:59 junkyard NetworkManager: (wlan0) Supplicant interface state change: 2 -> 3
Mar 15 18:45:24 junkyard NetworkManager: Activation (wlan0/wireless): association took too long, asking for new key.
Mar 15 18:45:24 junkyard NetworkManager: (wlan0) Supplicant interface state change: 3 -> 0
Mar 15 18:45:36 junkyard NetworkManager: wlan0: link timed out.


непонятно зачем - теоритически брелок должен быть уже разблокированным - NM каждый раз просит его разблокировать (один раз на сеанс).
почему-то NM быстро сдется и не может подключиться к сети (закономерности не выявлено, но происходит это часто...), хотя рядом лежит КПК под Windows mobile 6, который подхватывает эту же сеть без слов.

неопределенное число попыток и...
Mar 15 18:53:42 junkyard NetworkManager: User request for activation of wlan0.
Mar 15 18:53:42 junkyard NetworkManager: Deactivating device wlan0.
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0): cancelling...
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0): cancelled.
Mar 15 18:53:42 junkyard NetworkManager: Activating device wlan0
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Mar 15 18:53:42 junkyard NetworkManager: (wlan0) Supplicant interface state change: 3 -> 0
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0/wireless): access point 'Auto junkyard.wifi' has security, but secrets are required.
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Mar 15 18:53:42 junkyard NetworkManager: (wlan0) Supplicant interface state change: 0 -> 4
Mar 15 18:53:42 junkyard NetworkManager: (wlan0) Supplicant interface state change: 4 -> 0
Mar 15 18:53:42 junkyard NetworkManager: Missing or invalid key management
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0/wireless): connection 'Auto junkyard.wifi' has security, and secrets exist. No new secrets needed.
Mar 15 18:53:42 junkyard NetworkManager: Config: added 'ssid' value 'junkyard.wifi'
Mar 15 18:53:42 junkyard NetworkManager: Config: added 'key_mgmt' value 'WPA-PSK'
Mar 15 18:53:42 junkyard NetworkManager: Config: added 'psk' value ''
Mar 15 18:53:42 junkyard NetworkManager: Config: added 'proto' value 'WPA RSN'
Mar 15 18:53:42 junkyard NetworkManager: Config: added 'pairwise' value 'TKIP CCMP'
Mar 15 18:53:42 junkyard NetworkManager: Config: added 'group' value 'WEP40 WEP104 TKIP CCMP'
Mar 15 18:53:42 junkyard NetworkManager: Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Mar 15 18:53:42 junkyard NetworkManager: Config: set interface ap_scan to 1
Mar 15 18:53:42 junkyard NetworkManager: (wlan0) Supplicant interface state change: 0 -> 2
Mar 15 18:53:45 junkyard NetworkManager: (wlan0) Supplicant interface state change: 2 -> 3
Mar 15 18:53:47 junkyard NetworkManager: (wlan0) Supplicant interface state change: 3 -> 4
Mar 15 18:53:47 junkyard kernel: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Mar 15 18:53:47 junkyard NetworkManager: (wlan0) Supplicant interface state change: 4 -> 5
Mar 15 18:53:47 junkyard NetworkManager: (wlan0) Supplicant interface state change: 5 -> 6
Mar 15 18:53:47 junkyard NetworkManager: (wlan0) Supplicant interface state change: 6 -> 7
Mar 15 18:53:47 junkyard NetworkManager: Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful. Connected to wireless network 'junkyard.wifi'.
Mar 15 18:53:47 junkyard NetworkManager: Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Mar 15 18:53:47 junkyard NetworkManager: Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Mar 15 18:53:47 junkyard NetworkManager: Activation (wlan0) Beginning DHCP transaction.
...
Mar 15 18:53:47 junkyard NetworkManager: dhclient started with pid 9112
Mar 15 18:53:47 junkyard NetworkManager: Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Mar 15 18:53:47 junkyard dhclient: wifi0: unknown hardware address type 801
Mar 15 18:53:47 junkyard NetworkManager: DHCP: device wlan0 state changed normal exit -> preinit
...
Mar 15 18:53:49 junkyard NetworkManager: DHCP: device wlan0 state changed preinit -> bound
Mar 15 18:53:49 junkyard NetworkManager: Activation (wlan0) Stage 4 of 5 (IP Configure Get) scheduled...
Mar 15 18:53:49 junkyard dhclient: bound to 192.168.0.101 -- renewal in 255856 seconds.
Mar 15 18:53:49 junkyard NetworkManager: Activation (wlan0) Stage 4 of 5 (IP Configure Get) started...
Mar 15 18:53:49 junkyard NetworkManager: address 192.168.0.101
Mar 15 18:53:49 junkyard NetworkManager: netmask 255.255.255.0
Mar 15 18:53:49 junkyard NetworkManager: broadcast 192.168.0.255
Mar 15 18:53:49 junkyard NetworkManager: gateway 192.168.0.1
Mar 15 18:53:49 junkyard NetworkManager: nameserver '192.168.0.1'
Mar 15 18:53:49 junkyard NetworkManager: Activation (wlan0) Stage 5 of 5 (IP Configure Commit) scheduled...
Mar 15 18:53:49 junkyard NetworkManager: Activation (wlan0) Stage 4 of 5 (IP Configure Get) complete.
Mar 15 18:53:49 junkyard NetworkManager: Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started...
...
Mar 15 18:53:50 junkyard NetworkManager: Activation (wlan0) successful, device activated.
Mar 15 18:53:50 junkyard NetworkManager: Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.

Комментариев нет: