Ad-Hoc problem...

Dan Williams dcbw at redhat.com
Tue Dec 18 10:01:18 EST 2007


On Tue, 2007-12-18 at 12:28 +0530, Raghavendra. S wrote:
> Hi,
> 
>  I tried testing for Ad-Hoc mode support with wpa supplicant-0.6.1.
> 
> wpa_supplicant.conf has following entries.
> ------------------------------start--------------------------------------------------------------
> ctrl_interface=/var/run/wpa_supplicant
> ap_scan=2
> 
> network={
>         ssid="kk"
>         mode=1
>         frequency=2462
>         key_mgmt=NONE
> }
> ------------------------------start--------------------------------------------------------------
> 
> My iwlist scan result...
> 
> # iwlist eth0 scan
> eth0      Scan completed :
>           Cell 03 - Address: 02:E0:98:05:56:A6
>                     ESSID:"kk" [3]
>                     Mode:Ad-Hoc
>                     Frequency:2.462 GHz (Channel 11)
>                     Quality:0/100  Signal level=-58 dBm  Noise level=-98 dBm
>                     Encryption key:off
>                     Bit Rates:54 Mb/s
> 
> 
> After enabling wpa supplicant as below, it is getting connected.
> ------------------------------------------------------------------
> # ./wpa_supplicant -ieth0 -c ./files/wpa_supplicant.adhoc -Dwext -B
> ioctl[SIOCSIWPMKSA]: Invalid argument
> ioctl[SIOCSIWPMKSA]: Invalid argument
> # iwconfig
> eth0      MRVL-SD8686  ESSID:"kk" [3]
>           Mode:Ad-Hoc  Frequency:2.462 GHz  Cell: 02:E0:98:05:62:CB
>           Bit Rate:54 Mb/s   Tx-Power=13 dBm
>           Retry limit:8   RTS thr=2347 B   Fragment thr=2346 B
>           Encryption key:off
>           Power Management:off
>           Link Quality:0  Signal level:0  Noise level:160
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:379693
>           Tx excessive retries:234  Invalid misc:59670   Missed beacon:0
> 
> 
> 
> Now I modified ssid="gsdgdg" in wpa_supplicant.conf. still it is
> getting connected to some MAC, which is not displayed by "iwlist eth0
> scan"

The driver invents a BSSID.  The MAC you see (starting with 02:xxxxxx)
is created by the driver because that's sort of how Ad-Hoc mode works.

> Even tried by modifying frequency=162 or some junk value. now iwconfig
> had yield following result
> 
> # iwconfig
> eth0      MRVL-SD8686  ESSID:"gsdgdg"
>           Mode:Ad-Hoc  Frequency:2.437 GHz  Cell: 02:24:F4:14:0B:E7
>           Bit Rate:11 Mb/s   Tx-Power=18 dBm
>           Retry limit:8   RTS thr=2347 B   Fragment thr=2346 B
>           Encryption key:off
>           Power Management:off
>           Link Quality:0  Signal level:0  Noise level:160
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:621730
>           Tx excessive retries:494  Invalid misc:125970   Missed beacon:0
> 
> 
> Can any body tell me why this is happenning? Is it a bug in 0.6.1? or
> I am doing something wrong.

What's the actual problem here?  Its not clear to me what problem you're
really having...  It looks like it's working as expected.

Dan





More information about the HostAP mailing list