CALL for TEST [HOSTAP] run(4) ralink usb wireless

Ganbold ganbold at gmail.com
Wed Jun 16 16:22:15 UTC 2010


AK-san,

PseudoCylon wrote:
> Hello,
>
> More questions.
>
> Is freebsd laptop working fine with wlan, or is it connected to ethernet port?
>
> Does adsl modem still freeze?
>
> Normally, when you ping from macbook to modem, there will be arp pakets
> 'who-has modem tell macbook' and
> 'modem is-at xx:xx...'
> Do you see these at wlan0 on rspro?
>
> If rspro can ping patch should be working, but let's make sure it is. Please before starting hostapd,
> sysctl hw.usb.run.debug=1
> (If the driver is not compiled with kernel, please apply a patch attached.)
> When hostapd is started, it will print out
>
> Starting hostapd.
> Configuration file: /etc/hostapd.conf
> Using interface wlan0 with hwaddr 00:22:cf:03:e0:30 and ssid 'bsd'
> run_key_set: cmdq_store=0
> run_key_set_cb: associd=0, keyix=1, mode=3, type=group, tx=on, rx=off
> run_stop: All Tx cleared
> run_newstate: INIT -> INIT
> run_newstate: INIT -> SCAN
> ... omit some lines ...
>
> Please confirm there is
> run_key_set_cb: associd=0, mode=3, ...
> And, associd is '0' (This was the problem before. So, encryption with group key failed.)
>
> When macbook associates with AP, it will print
>
> run_newassoc: cmdq_store=2
> run_newassoc: new assoc isnew=1 associd=c001 addr=00:26:bb:17:f6:61
> run_newassoc: rate=0x82 ridx=0 ctl_ridx=0
> ... omit some lines ...
> run_newassoc: rate=0x6c ridx=11 ctl_ridx=8
> run_newassoc: rate=2, mgmt_ridx=0
> run_key_set: cmdq_store=3
> run_key_set_cb: associd=c001, keyix=0, mode=4, type=pairwise, tx=on, rx=on
>
> Please confirm there is
> run_key_set_cb: associd=c001, mode=4, ...
> And associd isn't '0'.
>
> If not, I need to fix the driver. If things go accordingly, please compare the mode. With your config, group key uses TKIP (mode 3) and pairwise key uses CCMP (mode 4). And very first arp who-has packet uses group key and other use pairwise key. Maybe, macbook doesn't like mixing the mode. So, please
> tcpdump -vvv -xxx -i wlan0 'arp'
> and check if any packet with address of all 'ff'. is sent/received alright. All 'ff 'means using group key. Others use pairwise key. All 'ff  is easy to see in output of tcpdump. Or, you can chose one of them, CCMP or TKIP for 'wpa_pairwise=' and see if it makes any difference.
>   

I tried both wpa_pairwise=CCMP and wpa_pairwise=TKIP, and it is same as
before, modem hangs.

Ganbold

>
> Sorry for too many questions. It is working fine here, again.
> AK
>
> --patch Only needed if the driver is not compiled with the kernel--
>
> diff --git a/dev/usb/wlan/if_run.c b/dev/usb/wlan/if_run.c
> index e4fc8d2..65c1dab 100644
> --- a/dev/usb/wlan/if_run.c
> +++ b/dev/usb/wlan/if_run.c
> @@ -69,6 +69,7 @@ __FBSDID("$FreeBSD: src/sys/dev/usb/wlan/if_run.c,v 1.11 2010/06/14 23:01:50 jki
>  #include "usbdevs.h"
>  
>  #define USB_DEBUG_VAR run_debug
> +#define USB_DEBUG
>  #include <dev/usb/usb_debug.h>
>  
>  #include "if_runreg.h"
>
> --end patch--
> only one line to add
>
>
>
>
>   


-- 
I never killed a man that didn't deserve it. -- Mickey Cohen


More information about the freebsd-current mailing list