How to get the link status when hostap driver is in managed mode

Gargi D gargid
Thu Jul 8 13:43:03 PDT 2004


Alternatively you can also read a particular RID Value i.e. RID FD40.
If you have installed hostap utils running the following command will give
you the status

./hostap_rid wlan0 get fd40

where wlan0 is ur interface

One of the following values would be returned.  If in managed mode values 1,
2, 4 and 5 make sense.
1 = Disabled

2 = Searching for initial connection

3 = Connected to IBSS

4 = Connected to ESS (see note)

5 = Out of Range (in ESS)

6 = Connected to WDS

8 = Started Host AP



Miss. Gargi Dadhich
Member Technical Staff
Networking and Internet Software Group (NISG)
C-DAC, Pune

Tel:    020-25694000/1/2/3      Extn: 484
Fax:   020-25694059


> iwconfig wlan0 will show you which AP you are associated to, (if you are
not
> associated, you get al 4's on hostap, and there is also signal and noise
> level data.
>
> On Thursday 08 July 2004 03:48 pm, jar wrote:
> > Hello
> >
> > When doing own scripts in host which is in Managed mode, it is sometimes
> > needed to know if the link between the ap and the client is OK.
> >
> > Where you can easily see if the host currently associated and
> > authenticated with AP. Can wireless tools directly offer that kind of
> > information? At least the hostap driver knows when the link is ok. But
> > how to get that information out. Doing "ping to_to_the_ap" is not so
> > nice way to do it.
> >
> > BR. Jar
> > _______________________________________________
> > HostAP mailing list
> > HostAP at shmoo.com
> > http://lists.shmoo.com/mailman/listinfo/hostap
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap





More information about the Hostap mailing list