Hi Eric and friends,

I stumbled across a couple of problems today while playing with hostapd.

It looks like WPA2 (psk) is not working properly with my Atheros CM9 
card.  I did a cursory visual inspection of the source and it looks like 
the problem might be fixed by compiling with MADWIFI_NG.  Unfortunately, 
I no longer have a linux development system (it got replaced with a Mac 
this week) so I can't verify it.

The problem I was seeing is that clients attempting to negotiate WPA2 
were generating the following message:

"No WPA/RSN element for station!?" in the debug output.  I noticed that 
there is some conditional code ifdef'ed on MADWIFI_NG.  Since leaf 
currently ships with madwifi_ng, not the old madwifi code, it would be 
good to make sure that little bit of code gets compiled in.  Again, I'm 
sorry, this is just by inspection.  (oops, update, if the dev 
environment was correct, we should have set it based upon 
IEEE_80211_IOCTL_SETWMMPARAMS up at the top of the file... so I am 
confused).  Are we compiling against the right headers?

If I have a free afternoon (was hoping to do it this weekend), I'll try 
to get parallels desktop up and running to creat a virtual linux machine 
under macos running so I can do occasional leaf development.

-----

The second problem is probably a madwifi driver bug or an inability of 
the CM9 card.

I was trying to run WPA with CCMP (AES in CBC mode) as one of the 
available cyphers.  (hostapd was configured to allow ccmp as well as 
tkip).  My Mac was working fine, but my wife's PC was crapping out.

When hostapd attempts to configure the atheros card to do CCMP, we get a 
bad ioctl error.  The CM9 should support this:


wlan: 0.8.4.2 (0.9.0)
wlan: mac acl policy registered
ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
ath_rate_sample: 1.2 (0.9.0)
ath_pci: 0.9.4.5 (0.9.0)
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 5.9 phy 4.3 radio 3.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x80000000, irq=12




FWIW, does anyone know if the openwrt development environment works in a 
cross compilation scenario?  I never thought I'd actually get caught by 
all of my whining about cross compilation for leaf over the years, but 
now I find myself actually able to consolodate all of my computer crud 
into one mac laptop and, honestly, so far I'm pretty damn happy.

I would be willing and able to test hostapd.lrp's if someone else can 
build them.

Paul




_______________________________________________
leaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to