Opened 13 years ago

Closed 13 years ago

#8362 closed bug (fixed)

atheroswifi & WPA2

Reported by: erm67 Owned by: axeld
Priority: normal Milestone: R1
Component: Network & Internet/Wireless Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: x86

Description

My only internet connection right now is through a WPA2 wireless link and I cannot reconfigure it to use WEP so I must connect using WPA2. I tried hard to make haiku connect but no way at the moment; I tried the alpha first, than a nightly and now I am running a self compiled master (hrev43804) (all gcc2 hybrids) but still no connection. The first time I recompiled it I had added 'AddOptionalHaikuImagePackages wpa_supplicant ;' to UserBuildConfig but even if wpa_supplicant was installed in the system it did't worked, instead installing it using installoptionalpackages once the system was installed it did work, don't know why ... Anyway, I have two wifi card available an intel ipw2200 and an atheros AR922X, both are recognized (after installing the firmware for the ipw2200) but I cannot connect. I'd prefer to use the atheros since it works better, it is correctly recognized by haiku: in the log:

KERN: atheroswifi: init_driver(0x813fdfa4)
KERN: [atheroswifi] (ath_pci) bus_alloc_resource(3, [16], 0x0, 0xffffffff, 0x1,0x2)
KERN: add_memory_type_range(2621, 0xdfdf0000, 0x20000, 0)
KERN: set MTRRs to:
KERN:   mtrr:  0: base:    0xf0000, size:     0x1000, type: 0
KERN:   mtrr:  1: base: 0x7f7d2000, size:     0x2000, type: 0
KERN:   mtrr:  2: base: 0x7f7e0000, size:    0x20000, type: 0
KERN:   mtrr:  3: base: 0xd0000000, size: 0x10000000, type: 0
KERN:   mtrr:  4: base: 0xe0000000, size: 0x20000000, type: 0
KERN:   mtrr:  5: base: 0x80000000, size: 0x80000000, type: 1
KERN: [atheroswifi] (ath_pci) bus_alloc_resource(1, [0], 0x0, 0xffffffff, 0x1,0x6)
KERN: if_initname(0x8227f300, ath_pci, 3)
KERN: [atheroswifi] atheroswifi: /dev/net/atheroswifi/0
KERN: ifmedia_add: Adding Entry...
KERN:   Type: IEEE 802.11 Wireless Ethernet
KERN:   Mode: autoselect
KERN:   SubType: autoselect
KERN: ifmedia_add: Adding Entry...
KERN:   Type: IEEE 802.11 Wireless Ethernet
KERN:   Mode: autoselect
KERN:   SubType: autoselect
KERN:   SubType Option[0]: adhoc
KERN: ifmedia_add: Adding Entry...
KERN:   Type: IEEE 802.11 Wireless Ethernet
KERN:   Mode: autoselect
KERN:   SubType: autoselect
KERN:   SubType Option[0]: hostap
lots of messages like the last one ...

later:

KERN: ieee80211_sysctl_attach not implemented, yet.
KERN: [net/atheroswifi/0] 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
KERN: [net/atheroswifi/0] 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
KERN: [net/atheroswifi/0] 2T2R
KERN: [net/atheroswifi/0] 11ng MCS 20MHz
KERN: [net/atheroswifi/0] MCS 0-7: 6.5Mbps - 65Mbps
KERN: [net/atheroswifi/0] MCS 8-15: 13Mbps - 130Mbps
KERN: [net/atheroswifi/0] AR9280 mac 128.2 RF5133 phy 13.0
KERN: [net/atheroswifi/0] Use hw queue 1 for WME_AC_BE traffic
KERN: [net/atheroswifi/0] Use hw queue 0 for WME_AC_BK traffic
KERN: [net/atheroswifi/0] Use hw queue 2 for WME_AC_VI traffic
KERN: [netKERN: /atheroswifi/0] Use hw queue 3 for WME_AC_VO traffic
KERN: [net/atheroswifi/0] Use hw queue 8 for CAB traffic
KERN: [net/atheroswifi/0] Use hw queue 9 for beacons
KERN: [net/atheroswifi/0] using multicast key search
KERN: if_initname(0x8227f600, wlan, 3)
KERN: [atheroswifi] atheroswifi: /dev/net/atheroswifi/0
KERN: [net/atheroswifi/0] ieee80211_node_vattach: init 2 auth 12 run 20 probe 2
KERN: [net/atheroswifi/0] ieee80211_vap_attach: STA parent ath_pci flags 0x400c2008 flags_ext 0x2
KERN: [net/atheroswifi/0] ieee80211_alloc_node 0xcdd45000<f4:ec:38:ff:f9:3c> in station table
KERN: [net/atheroswifi/0] [f4:ec:38:ff:f9:3c] ieee80211_alloc_node: inact_reload 2
KERN: ifmedia_add: Adding Entry...
KERN:   Type: IEEE 802.11 Wireless Ethernet

There is one message about ieee80211_sysctl_attach not being implemented but I don't know if it is related to the problem, anyway using the ipw2200 drives gives the same results.

listdev:

device Network controller [2|80|0]
  vendor 168c: Atheros Communications Inc.
  device 0029: AR922X Wireless Network Adapter

listimage:

  994          /boot/system/add-ons/kernel/drivers/dev/net/atheroswifi 0x8133a000 0x813fd000    0          0

ifconfig:

/dev/net/atheroswifi/0
	Hardware type: Ethernet, Address: none
	Media type: Auto-select
	inet addr: , Bcast: , Mask: 
	MTU: 1500, Metric: 0, broadcast link
	Receive: 0 packets, 0 errors, 0 bytes, 0 mcasts, 0 dropped
	Transmit: 0 packets, 0 errors, 0 bytes, 0 mcasts, 0 dropped
	Collisions: 0

ifconfig /dev/net/atheroswifi/0 scan recognizes that a WPA2 link is available

name                             address              signal  auth
casa                             06:25:56:69:f5:c6        28  WPA2

When I try to activate the network the popup asking the password appears, I guess it is from wpa_supplicant since it didn't worked when wpa_supplicant was not correctly installed, but after a few second in 'configuring' the network doesn't work. The log shows that DHCP is trying to configure the network but it gets no answer:

DAEMON 'DHCP': /dev/net/atheroswifi/0: Send DHCP_DISCOVER to 255.255.255.255:67
KERN: [net/atheroswifi/0] compat_open(0x2)
KERN: [net/atheroswifi/0] ieee80211_init
KERN: [net/atheroswifi/0] start running, 0 vaps running
KERN: [net/atheroswifi/0] ieee80211_start_locked: up parent ath_pci
KERN: ifmedia_ioctl: no media found for 0x20
KERN: [net/atheroswifi/0] start running, 1 vaps running
KERN: /dev/net/atheroswifi/0: media change, media 0x200a0 quality 1000 speed 1000000000
KERN: [net/atheroswifi/0] start running, 1 vaps running
KERN: [net/atheroswifi/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
KERN: [net/atheroswifi/0] ieee80211_newstate_cb: INIT -> SCAN arg 0
KERN: [net/atheroswifi/0] sta_newstate: INIT -> SCAN (0)
KERN: [net/atheroswifi/0] ieee80211_check_scan: active scan, append
KERN: [net/atheroswifi/0] scan_update_locked: current scanner is <none:none>, switch to <wlan:STA>
KERN: [net/atheroswifi/0] start_scan_locked: active scan, duration 2147483647 mindwell 0 maxdwell 0, desired mode auto, flush
KERN: [net/atheroswifi/0] scan set 1g, 6g, 11g, 7g, 13g, 2g, 3g, 4g, 5g, 8g, 9g, 10g, 12g dwell min 20ms max 0ms
KERN: [net/atheroswifi/0] scan_task: chan   1b ->   1g [active, dwell min 20ms max 0ms]
KERN: wlan_control: 9235, 78
KERN: wlan_control: 9235, 76
KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_probereq:1748) 0xcdd45000<f4:ec:38:ff:f9:3c> refcnt 3
KERN: NDP entry 0xce130460 Marked as VALID
KERN: register_domain(9, unix)
KERN: [net/atheroswifi/0] scan_task: chan   1g ->   6g [active, dwell min 20ms max 0ms]
KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_probereq:1748) 0xcdd45000<f4:ec:38:ff:f9:3c> refcnt 3
KERN: [net/atheroswifi/0] scan_task: chan   6g ->  11g [active, dwell min 20ms max 0ms]
KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_probereq:1748) 0xcdd45000<f4:ec:38:ff:f9:3c> refcnt 3
KERN: [06:25:56:69:f5:c6] new probe_resp on chan 11 (bss chan 11) "casa" rssi 48
KERN: [06:25:56:69:f5:c6] caps 0x531 bintval 100 erp 0x100
KERN: [06:25:56:69:f5:c6] new beacon on chan 11 (bss chan 11) "casa" rssi 49
KERN: [06:25:56:69:f5:c6] caps 0x531 bintval 100 erp 0x100
KERN: [06:25:56:69:f5:c6] new beacon on chan 11 (bss chan 11) "casa" rssi 48
KERN: [06:25:56:69:f5:c6] caps 0x531 bintval 100 erp 0x100
KERN: [net/atheroswifi/0] scan_task: chan  11g ->   7g [active, dwell min 20ms max 0ms]
KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_probereq:1748) 0xcdd45000<f4:ec:38:ff:f9:3c> refcnt 3
KERN: [net/atheroswifi/0] scan_task: chan   7g ->  13g [active, dwell min 20ms max 0ms]
KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_probereq:1748) 0xcdd45000<f4:ec:38:ff:f9:3c> refcnt 3
KERN: /dev/net/atheroswifi/0: media change, media 0x300a0 quality 1000 speed 1000000000
KERN: [net/atheroswifi/0] scan_task: chan  13g ->   2g [active, dwell min 20ms max 0ms]
KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_probereq:1748) 0xcdd45000<f4:ec:38:ff:f9:3c> refcnt 3
KERN: [net/atheroswifi/0] scan_task: chan   2g ->   3g [active, dwell min 20ms max 0ms]
KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_probereq:1748) 0xcdd45000<f4:ec:38:ff:f9:3c> refcnt 3
KERN: [net/atheroswifi/0] scan_task: chan   3g ->   4g [active, dwell min 20ms max 0ms]
KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_probereq:1748) 0xcdd45000<f4:ec:38:ff:f9:3c> refcnt 3
KERN: [net/atheroswifi/0] scan_task: chan   4g ->   5g [active, dwell min 20ms max 0ms]
KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_probereq:1748) 0xcdd45000<f4:ec:38:ff:f9:3c> refcnt 3
KERN: [net/atheroswifi/0] scan_task: chan   5g ->   8g [active, dwell min 20ms max 0ms]
KERN: [net/atheroswifi/0] ieee80211_ref_node (ieee80211_send_probereq:1748) 0xcdd45000<f4:ec:38:ff:f9:3c> refcnt 3

Even if I don't try to connect the log keeps being filled with messages like this:

KERN: [net/atheroswifi/0] ieee80211_check_scan: active scan, append, nojoin, once
KERN: [net/atheroswifi/0]  macaddr          bssid         chan  rssi  rate flag  wep  essid
KERN:  + 06:25:56:69:f5:c6 06:25:56:69:f5:c6   11   +56  54M   ess  wep  "casa"
KERN: ieee80211_notify_scan_done
KERN: wlan_control: 9235, 76
KERN: ifmedia_ioctl: switching wlan to   Type: IEEE 802.11 Wireless Ethernet
KERN:   Mode: autoselect
KERN:   SubType: autoselect
KERN: wlan_control: 9234, 16
KERN: wlan_control: 9234, 17
KERN: wlan_control: 9234, 26
KERN: wlan_control: 9234, 103
KERN: [net/atheroswifi/0] ieee80211_scanreq: flags 0x20052 duration 0x7fffffff mindwell 0 maxdwell 0 nssid 1
KERN: [net/atheroswifi/0] ieee80211_check_scan: active scan, append, nojoin, once
KERN: [net/atheroswifi/0]  macaddr          bssid         chan  rssi  rate flag  wep  essid
KERN:  + 06:25:56:69:f5:c6 06:25:56:69:f5:c6   11   +56  54M   ess  wep  "casa"
KERN: ieee80211_notify_scan_done

Change History (3)

comment:1 by anevilyak, 13 years ago

Component: Network & InternetNetwork & Internet/Wireless
Owner: changed from nobody to axeld

comment:3 by diver, 13 years ago

Resolution: fixed
Status: newclosed

Probably fixed in hrev43948.

Note: See TracTickets for help on using tickets.