Detect link state ?
Antonio Vilei
antonio.vilei
Fri Jul 4 05:03:04 PDT 2003
Hello Bernard,
> My question is, what parameter or information to detect that Is it linked
or not between notebook
> and desktop in my notebook side ?
AP side:
check /proc/net/hostap/wlan#/
you will find an entry (the name is a MAC address) for each station
associated to that AP.
----------
STA side:
iwconfig wlan#
if the STA is connected to an AP you will find "Access Point:
xx:xx:xx:xx:xx:xx" (where is the MAC of the AP).
if the STA is not connected to any AP you will find "Access Point:
44:44:44:44:44:44".
Regards,
Antonio
----- Original Message -----
From: "imp" <imp at airlinktek.com>
To: "hostap" <hostap at shmoo.com>
Sent: Friday, July 04, 2003 7:16 AM
Subject: Detect link state ?
> Dear all..
>
> I have two hosap one is hostap master (my desktop) and the other is hostap
station mode in my notebook.
> actually I can link from notebook to desktop. and communicate well...
>
> My question is, what parameter or information to detect that Is it linked
or not between notebook
> and desktop in my notebook side ?, In addition too, How can I detect when
my note book associate or disassociate
> with the desktop(AP) and when my notebook reassociate the other desktop
(If I have more hostap master) as roaming
> other AP in notebook side ?
>
> Thanks for your comment and welcome to any advice...
>
> Bernard
More information about the Hostap
mailing list