Ed Howland | 1 Aug 2007 21:33
Picon

Hostapd - does not compile on latest kernel - git 2.6.23-rc1

I got the latest git version of hostap

Compiling against the git version of the linux-wireless-rt2x00 kernel
I get the following error.
2.6.23-rc1 (with merges from today.)

cc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I../src -I../src/crypto
-I../src/utils -I../src/common -I../../madwifi-trunk
-I/usr/src/kernels/2.6.22/net/mac80211 -D_LINUX_TYPES_H
-DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_IAPP
-DCONFIG_RSN_PREAUTH -DCONFIG_PEERKEY -DCONFIG_DRIVER_HOSTAP
-DCONFIG_DRIVER_WIRED -DCONFIG_DRIVER_MADWIFI -DCONFIG_DRIVER_PRISM54
-DCONFIG_DRIVER_DEVICESCAPE -DEAP_MD5 -DEAP_TLS -DEAP_PEAP -DEAP_TTLS
-DEAP_MSCHAPv2 -DEAP_GTC -DEAP_TLV -DEAP_SERVER -DEAP_TLS_FUNCS
-DPKCS12_FUNCS -DINTERNAL_SHA256 -DCONFIG_IPV6   -c -o
driver_devicescape.o driver_devicescape.c
driver_devicescape.c: In function 'i802_if_update':
driver_devicescape.c:1032: error: 'PRISM2_HOSTAPD_UPDATE_IF'
undeclared (first use in this function)
driver_devicescape.c:1032: error: (Each undeclared identifier is
reported only once
driver_devicescape.c:1032: error: for each function it appears in.)
driver_devicescape.c: In function 'handle_frame':
driver_devicescape.c:1358: error: 'ieee80211_msg_set_aid_for_sta'
undeclared (first use in this function)
driver_devicescape.c:1416: error: 'ieee80211_msg_passive_scan'
undeclared (first use in this function)
make: *** [driver_devicescape.o] Error 1

I assume something changed in some header and this define was removed/changed?
(Continue reading)

Michael Alexeev | 2 Aug 2007 03:41
Picon

Hostpad modification

Hello, hostapd developers.  Thank you for your work on hostapd. It has
been very useful to us in our test labs for the ISCS network security
management project (http://iscs.sourceforge.net).

As part of our work, we needed to make some modifications to hostapd and
would like to return them to the community if you are interested in
accepting them.  We needed a way to call an external script after
successful authentication and just before opening the port in order to
dynamically change the firewall rules.  We needed to pass to this script
the MAC address, port name and RADIUS attributes.  We also needed to
remember that information so we could undo those rules upon client
disconnection (and hence another call to an external script).

I do know that when I queried the netfilter mailing list to ask if
anyone had done this before with hostapd, there was some interest in
this functionality.  We have implemented it in a way specific to our
needs but would be willing to generalize it.  We see two paths to making
it more general.

So we have two questions:

1) Would you consider this as a contribution to hostapd?

2) If so, which of the two styles of implementation described below
would you prefer.

In either case  the entire ACCESS-ACCEPT RADIUS message needs to be
passed to the external process (EP) for further processing in order to
hide application specific processing from hostapd. It could be done
via
(Continue reading)

YAN HE | 3 Aug 2007 06:10
Favicon

help for error after changing mode

Hello, Everybody,
 
I met a strange problem in using hostap driver 0.4.9 for Prism cards. After I inserted the card, the driver could recognize the card and showed the general information after I ran "iwconfig wlan0". However, after I ran "iwconfig wlan0 mode Managed", the essid became empty(""). After that, whatever essid I assigned by running "iwconfig wlan0 essid essidname", the essid was always empty. When I ran "iwlist wlan0 scan", I got the error message "wlan0     Interface doesn't support scanning : Network is down".
 
The version of linux kernel is 2.6.11. I tried both Netgear MA401 16-bit card and D-Link DWL650 16-bit card, and got the same error. The detailed output is attached.
 
Thanks a lot.
YAN
 
 
Script started on Thu 02 Aug 2007 09:36:02 PM EDT
]
root <at> localhost:~[root <at> localhost ~]# iwconfig 
lo        no wireless extensions.

eth0      no wireless
extensions.

sit0      no wireless extensions.

Warning: Driver for device wifi0 recommend version 18 of
Wireless Extension,
but has been compiled with version 17, therefore some driver features
may not be
available...

wifi0     IEEE 802.11b  ESSID:"test"  
          Mode:Master  Access Point: 00:00:00:00:00:00   Bit
Rate:11 Mb/s   
          Sensitivity=1/3  
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Encryption key:off
         
Power Management:off
          
wlan0     IEEE 802.11b  ESSID:"test"  
          Mode:Master  Access Point:
00:00:00:00:00:00   Bit Rate:11 Mb/s   
          Sensitivity=1/3  
          Retry min limit:8   RTS thr:off   Fragment thr:off
         
Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid
nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed
beacon:0

root <at> localhost:~[root <at> localhost ~]# iwconfig essid "BR4"

Warning: Driver for device
wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17, therefore some
driver features
may not be available...

wlan0     IEEE 802.11b  ESSID:"BR4"  
          Mode:Master  Access Point:
00:00:00:00:00:00   Bit Rate:11 Mb/s   
          Sensitivity=1/3  
          Retry min limit:8   RTS thr:off   Fragment thr:off
         
Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid
nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed
beacon:0


root <at> localhost:~[root <at> localhost ~]# iwconfig wlan0 mode Managed

Warning: Driver for
device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17,
therefore some driver features
may not be available...

wlan0     IEEE 802.11b  ESSID:""  
          Mode:Managed 
Access Point: 00:00:00:00:00:00   Bit Rate:2 Mb/s   
          Sensitivity=1/3  
          Retry min limit:8   RTS thr:off  
Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal level=-73 dBm 
Noise level=-73 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0 
Invalid misc:0   Missed beacon:0

root <at> localhost:~[root <at> localhost ~]# iwlist wlan0 scan
Warning:
Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version
17, therefore some driver features
may not be available...

wlan0     Interface doesn't support scanning
: Network is down


root <at> localhost:~[root <at> localhost ~]# iwconfig wlan0 essid "BR4"

Warning:
Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version
17, therefore some driver features
may not be available...

wlan0     IEEE 802.11b  ESSID:""  
         
Mode:Managed  Access Point: 00:00:00:00:00:00   Bit Rate:2 Mb/s   
          Sensitivity=1/3  
          Retry min limit:8   RTS
thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal
level=-73 dBm  Noise level=-73 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive
retries:0  Invalid misc:0   Missed beacon:0

]0;root <at> localhost:~[root <at> localhost ~]# exit
Script done on Thu 02 Aug 2007 09:37:24 PM EDT
_______________________________________________
HostAP mailing list
HostAP <at> shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Preethi Mohan | 3 Aug 2007 13:30
Picon

Re: Help on hostp acting as RADIUS Server

Thanks Jouni for the information.But I need some more info.
 
My scenario is like this.I have a single instance of hostap that acts  both as authenticator & radius server.I want the authenticator to use an external radius server not the internal eap server.Is it possible for this authenticator to use its inbuilt RADIUS server for authentication.
 
Can you please help me out.
 
Thanks & Regards
Preethi
 
On 7/27/07, Jouni Malinen <j <at> w1.fi> wrote:
On Fri, Jul 27, 2007 at 10:39:47AM +0530, Preethi Mohan wrote:

>   I want to configure the code to act as a backend authenticator (ie
> authentication using a RADIUS server) .Instead of an external RADIUS
> Server,can I use the RADIUS Server with hostap for this purpose.Is it
> possible to use a single instance of hostap to act as both back end
> authenticator and RADIUS Server for that authenticator.Or else do I have to
> run two instances of hostap ie one acting as backend authenticator and
> another one acting as RADIUS Server.Can anyone please help me out.

Yes, you can configure one instance to act as both the authenticator for
the local wireless radio and as a RADIUS server for other devices. Both
cases share the same configuration for EAP (including the eap_server=1
to enable EAP server functionality). If you then add radius_server_*
options, the RADIUS server functionality will be enabled. You can leave
out the auth_server_* parameters since RADIUS is not actually used for
the internal authentication case at all.

--
Jouni Malinen                                            PGP id EFC895FA
_______________________________________________
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
Timur Alperovich | 3 Aug 2007 15:17
Picon

Re: help for error after changing mode

Yan,

I've had a similar issue and I had to reset the card to get it to work properly. You can do that with "iwpriv wlan0 reset 1". Try that. I hope it helps.

Timur

On 8/3/07, YAN HE <yanhe <at> louisiana.edu> wrote:

Hello, Everybody,
 
I met a strange problem in using hostap driver 0.4.9 for Prism cards. After I inserted the card, the driver could recognize the card and showed the general information after I ran "iwconfig wlan0". However, after I ran "iwconfig wlan0 mode Managed", the essid became empty(""). After that, whatever essid I assigned by running "iwconfig wlan0 essid essidname", the essid was always empty. When I ran "iwlist wlan0 scan", I got the error message "wlan0     Interface doesn't support scanning : Network is down".
 
The version of linux kernel is 2.6.11. I tried both Netgear MA401 16-bit card and D-Link DWL650 16-bit card, and got the same error. The detailed output is attached.
 
Thanks a lot.
YAN
 
 

_______________________________________________
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
YAN HE | 3 Aug 2007 16:18
Favicon

Re: help for error after changing mode

Hi, Timur,
 
I tried your method and it works.
 
Thanks,
YAN
----- Original Message -----
Sent: Friday, August 03, 2007 8:17 AM
Subject: Re: help for error after changing mode

Yan,

I've had a similar issue and I had to reset the card to get it to work properly. You can do that with "iwpriv wlan0 reset 1". Try that. I hope it helps.

Timur

On 8/3/07, YAN HE <yanhe <at> louisiana.edu> wrote:
Hello, Everybody,
 
I met a strange problem in using hostap driver 0.4.9 for Prism cards. After I inserted the card, the driver could recognize the card and showed the general information after I ran "iwconfig wlan0". However, after I ran "iwconfig wlan0 mode Managed", the essid became empty(""). After that, whatever essid I assigned by running "iwconfig wlan0 essid essidname", the essid was always empty. When I ran "iwlist wlan0 scan", I got the error message "wlan0     Interface doesn't support scanning : Network is down".
 
The version of linux kernel is 2.6.11. I tried both Netgear MA401 16-bit card and D-Link DWL650 16-bit card, and got the same error. The detailed output is attached.
 
Thanks a lot.
YAN
 
 

_______________________________________________
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
_______________________________________________
HostAP mailing list
HostAP <at> shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
Kelly Hogan | 3 Aug 2007 16:53
Favicon

Re: help for error after changing mode

This will reset the firmware, so all settings of power, etc will have to be reset.  Also note that with 0.4.9 this command will hang the card and cause a kernel panic on 2.6.11 and above if issued too many times in succession.  Usually not an issue, But a few thousand resets and it will do it.

Good luck...

On Aug 3, 2007, at 8:18 AM, YAN HE wrote:

Hi, Timur,
 
I tried your method and it works.
 
Thanks,
YAN
----- Original Message -----
Sent: Friday, August 03, 2007 8:17 AM
Subject: Re: help for error after changing mode

Yan,

I've had a similar issue and I had to reset the card to get it to work properly. You can do that with "iwpriv wlan0 reset 1". Try that. I hope it helps.

Timur

On 8/3/07, YAN HE <yanhe <at> louisiana.edu> wrote:
Hello, Everybody,
 
I met a strange problem in using hostap driver 0.4.9 for Prism cards. After I inserted the card, the driver could recognize the card and showed the general information after I ran "iwconfig wlan0". However, after I ran "iwconfig wlan0 mode Managed", the essid became empty(""). After that, whatever essid I assigned by running "iwconfig wlan0 essid essidname", the essid was always empty. When I ran "iwlist wlan0 scan", I got the error message "wlan0     Interface doesn't support scanning : Network is down".
 
The version of linux kernel is 2.6.11. I tried both Netgear MA401 16-bit card and D-Link DWL650 16-bit card, and got the same error. The detailed output is attached.
 
Thanks a lot.
YAN
 
 

_______________________________________________
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
_______________________________________________
HostAP mailing list

_______________________________________________
HostAP mailing list
HostAP <at> shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
YAN HE | 3 Aug 2007 17:09
Favicon

Re: help for error after changing mode

Hi, Timur,
 
Actually I forgot to activate the interface. In my tests before, I ran "dhclient wlan0", so the interface was turned on by "dhclient". This time I do not want to use dhcp, but I forgot to run "ifconfig wlan0 up". So I met those strange problems. After I ran "ifconfig wlan0 up" told by Kelly, the problem was gone.
 
Thanks for you two.
YAN
 
----- Original Message -----
To: YAN HE
Sent: Friday, August 03, 2007 9:53 AM
Subject: Re: help for error after changing mode

This will reset the firmware, so all settings of power, etc will have to be reset.  Also note that with 0.4.9 this command will hang the card and cause a kernel panic on 2.6.11 and above if issued too many times in succession.  Usually not an issue, But a few thousand resets and it will do it.

Good luck...

On Aug 3, 2007, at 8:18 AM, YAN HE wrote:

Hi, Timur,
 
I tried your method and it works.
 
Thanks,
YAN
----- Original Message -----
Sent: Friday, August 03, 2007 8:17 AM
Subject: Re: help for error after changing mode

Yan,

I've had a similar issue and I had to reset the card to get it to work properly. You can do that with "iwpriv wlan0 reset 1". Try that. I hope it helps.

Timur

On 8/3/07, YAN HE <yanhe <at> louisiana.edu> wrote:
Hello, Everybody,
 
I met a strange problem in using hostap driver 0.4.9 for Prism cards. After I inserted the card, the driver could recognize the card and showed the general information after I ran "iwconfig wlan0". However, after I ran "iwconfig wlan0 mode Managed", the essid became empty(""). After that, whatever essid I assigned by running "iwconfig wlan0 essid essidname", the essid was always empty. When I ran "iwlist wlan0 scan", I got the error message "wlan0     Interface doesn't support scanning : Network is down".
 
The version of linux kernel is 2.6.11. I tried both Netgear MA401 16-bit card and D-Link DWL650 16-bit card, and got the same error. The detailed output is attached.
 
Thanks a lot.
YAN
 
 

_______________________________________________
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
_______________________________________________
HostAP mailing list

_______________________________________________
HostAP mailing list
HostAP <at> shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
YAN HE | 3 Aug 2007 19:04
Favicon

question about channel switching delay

Hello,everybody,
 
I am using hostap driver 0.4.9 for a Netgear MA401 card on Linux 2.6.11. The card was in Managed mode and connected to an access point first. When I changed either essid or mode by invoking ioctl() in my program, the delay is 12 ms. However, if I changed both essid and mode, the delay is 33 ms, which is more than the sum of two separate delays. Does anyone meet this before?
 
Thanks.
YAN
 
 
 
_______________________________________________
HostAP mailing list
HostAP <at> shmoo.com
http://lists.shmoo.com/mailman/listinfo/hostap
hong zhang | 3 Aug 2007 19:13
Picon
Favicon

Re: question about channel switching delay

How do you determine delay time?
Do you use iwevent?

----henry

--- YAN HE <yanhe <at> louisiana.edu> wrote:

> Hello,everybody,
> 
> I am using hostap driver 0.4.9 for a Netgear MA401
> card on Linux 2.6.11. The card was in Managed mode
> and connected to an access point first. When I
> changed either essid or mode by invoking ioctl() in
> my program, the delay is 12 ms. However, if I
> changed both essid and mode, the delay is 33 ms,
> which is more than the sum of two separate delays.
> Does anyone meet this before?
> 
> Thanks.
> YAN
> 
> 
>  > _______________________________________________
> HostAP mailing list
> HostAP <at> shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
> 

       
____________________________________________________________________________________Ready
for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

Gmane