Problem in Ad-Hoc mode WPA-NONE security... need help.

Raghavendra. S raghavendra.akkasali
Thu Jan 10 17:25:18 PST 2008

On 1/10/08, Dan Williams <dcbw at> wrote:
> On Thu, 2008-01-10 at 11:29 +0530, Raghavendra. S wrote:
> > Hi All,
> >
> >  I applied back ported ad-hoc mode patch to wpa supplicant-0.5.9. It
> > is working fine for when I tested without security. Also ping works.
> >
> > But when I tried testing with security(WPA-NONE) using below config
> > file on both  of the devices it is getting associated but ping is not
> > working.
> Run /sbin/iwconfig on each machine.  Do they have the same "Access
> Point"?

   Yes. I executed /sbin/iwconfig on both LAPTOP and my device. Both
of them displayed "testboard" as essid. This is essid of the initiator

On my device - initiator - first I enable wpa supplicant on my device
eth0      MRVL-SD8686  ESSID:"testboard"
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 02:0C:F1:0D:E7:13
          Bit Rate:11 Mb/s   Tx-Power=18 dBm
          Retry limit:8   RTS thr=2347 B   Fragment thr=2346 B
          Encryption key:<too big>   Security mode:open
          Power Management:off
          Link Quality:0/100  Signal level:-40 dBm  Noise level:-99 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:9147
          Tx excessive retries:13  Invalid misc:3315   Missed beacon:0

On laptop
eth1      IEEE 802.11b  ESSID:"testboard"  Nickname:"ipw2100"
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 02:0C:F1:0D:E7:13
          Bit Rate=0 kb/s   Tx-Power:16 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=100/100  Signal level=-26 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:17   Missed beacon:0

> Can you try doing ad-hoc mode with WEP and see if that works?  If not,
> can you try configuring both machines with /sbin/iwconfig manually and
> see if that works?  Basically, narrow down the issue to whether or not
> it's a wpa_supplicant, driver, or random wireless problem.

  I configured for ad-hoc mode using "iwconfig" on both the devices.
It works fine. If I am not wrong, configuring using iwconfig is same
as enabling wpa_supplicant ad-hoc mode with out security. Am I right?

As I mentioned in my previous mail. wpa supplicant is working in
ad-hoc mode without security. I am facing problem in WPA-NONE.

How to configure and test WEP security in ad-hoc mode? please tell me set up.

> Dan
> > My config file has following entries. I am using same config file on
> > two devices.
> >
> > # cat /tmp/wpa_supplicant.conf.tmp
> > ctrl_interface=/var/run/wpa_supplicant
> > ap_scan=2
> >
> > network={
> >                 mode=1
> >                 ssid="testboard"
> >                 frequency=2412
> >                 key_mgmt=WPA-NONE
> >                 proto=WPA
> >                 pairwise=NONE
> >                 group=TKIP
> >                 psk="raghu123456"
> > }
> >
> >
> > I enabled wpa_supplicant-0.6.1 on Laptop, with above config file.
> > Then I enabled backported wpa_supplicant-0.5.9 with same/above config file.
> >
> > Is this set up correct? or I am doing something wrong?
> >

Regards & Thanks
Raghavendra. S

More information about the Hostap mailing list