Hostapd gives error with Madwifi.conf file

maloomnahi at indiatimes.com maloomnahi
Sun Sep 9 22:27:17 PDT 2007


Hi Nazeer,

I tried the commands you have mentioned below. Following was the error on my prompt on using the "brctl" command.

[root at localhost hostapd-0.5.8]# brctl addbr br0
-bash: brctl: command not found

Does that mean the bridge interface is faulty one here? Are the modules added into the system fine?

Thanks and Regards
PPN


----- Original Message -----
From: Nazeer Khan <Nazeer.Khan at nicta.com.au>
To: maloomnahi at indiatimes.com
Cc: Nazeer Khan <nazeer.khan at nicta.com.au>, hostap at shmoo.com
Sent: Mon, 10 Sep 2007 10:51:05 +0530 (IST)
Subject: RE: Hostapd gives error with Madwifi.conf file


On Mon, September 10, 2007 3:00 pm, maloomnahi at indiatimes.com said:
> Hi Nazeer,
>
> Every PCI card for example AR5212 comes with a bridge interface to
> connecto the hardware. Mine is also a TPLINK PCI AR5212 chipset. So my
> CONF files always call for the bridge interface. Is it in anyway a
> compilation or .CONFIG file issue? Following are the modules added into
> the system

    brctl addbr br0
    brctl addif br0 eth0
    brctl addif br0 ath0
    ifconfig ath0 up
    ifconfig eth0 up
    ifconfig br0 up

run hostapd after this..... check if any errors.

>
> Module                  Size  Used by
> hostapd_cli.o          17792  0
> sta_info.o             15744  0
> ttls_openssl.o          5632  0
> md5.o                   8320  0
> md4.o                   8448  0
> sha256.o               15360  0
> ieee802_11_auth.o       5632  0
> hostapd.o               5632  0
> eap_ttls.o              5632  0
> eap_tls_common.o        5632  0
> eap_sim.o               5632  0
> eap_psk.o               5632  0
> eap_pax.o               5632  0
> eap_maschapv2.o         5632  0
> eap_md5.o               5632  0
> eap_gtc.o               5632  0
> eap_gpsk.o              5632  0
> eap_gpsk_common.o       5632  0
> eap_aka.o               5632  0
> driver_madwifi.o       11392  0
> crtl_iface.o            8832  0
> crypto.o               31808  0
> eap.o                   5632  0
> ieee802_1x.o            5632  0
> ieee802_11.o            5632  0
> preauth.o               5632  0
> radius_client.o         5632  0
> radius_server.o         5632  0
> radius.o                5632  0
> radius                  5632  0
> wme.o                  31808  0
> wpa_ctrl.o             31808  0
> wpa.o                  31808  0
> aes_wrap.o             31936  0
> des                    21888  0
> wlan_scan_ap            8832  0
> wlan_xauth              5632  0
> ieee80211              32712  0
> ieee80211_crypt         9728  1 ieee80211
> md5                     8320  0
> md4                     8448  0
> sha256                 15360  0
> wlan_acl                8192  0
> wlan_wep                9984  0
> wlan_ccmp              11392  0
> wlan_tkip              15232  0
> aes                    31808  0
> i915                   23168  2
> drm                    72596  3 i915
> autofs4                25604  2
> hidp                   24064  2
> rfcomm                 45976  0
> l2cap                  31744  10 hidp,rfcomm
> bluetooth              58596  5 hidp,rfcomm,l2cap
> sunrpc                158524  1
> acpi_cpufreq           13188  0
> freq_table              9984  1 acpi_cpufreq
> dm_multipath           22536  0
> video                  20996  0
> sbs                    20288  0
> i2c_ec                  9344  1 sbs
> button                 11152  0
> battery                14468  0
> ac                      9604  0
> ipv6                  266272  36
> parport_pc             31268  1
> lp                     17096  0
> parport                40648  2 parport_pc,lp
> snd_intel8x0           36508  1
> snd_ac97_codec         95136  1 snd_intel8x0
> snd_ac97_bus            6656  1 snd_ac97_codec
> snd_seq_dummy           8196  0
> intel_rng               7168  0
> snd_seq_oss            37248  0
> snd_seq_midi_event     11904  1 snd_seq_oss
> snd_seq                57072  5
> snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
> wlan_scan_sta          17792  0
> snd_seq_device         12556  3 snd_seq_dummy,snd_seq_oss,snd_seq
> snd_pcm_oss            46464  0
> snd_mixer_oss          20736  1 snd_pcm_oss
> ath_rate_sample        16512  1
> sg                     38684  0
> snd_pcm                80388  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
> serio_raw              11268  0
> tg3                   105348  0
> ath_pci                97184  0
> wlan                  198724  36
> hostapd_cli.o,sta_info.o,ttls_openssl.o,ieee802_11_auth.o,hostapd.o,eap_ttls.o,eap_tls_common.o,eap_sim.o,eap_psk.o,eap_pax.o,eap_maschapv2.o,eap_md5.o,eap_gtc.o,eap_gpsk.o,eap_gpsk_common.o,eap_aka.o,driver_madwifi.o,crtl_iface.o,eap.o,ieee802_1x.o,ieee802_11.o,preauth.o,radius_client.o,radius_server.o,radius.o,radius,wlan_scan_ap,wlan_xauth,wlan_acl,wlan_wep,wlan_ccmp,wlan_tkip,wlan_scan_sta,ath_rate_sample,ath_pci
>
>
> Thanks
> PPN
>
>
> ----- Original Message -----
> From: Nazeer Khan <Nazeer.Khan at nicta.com.au>
> To: maloomnahi at indiatimes.com
> Cc: Nazeer Khan <nazeer.khan at nicta.com.au>, hostap at shmoo.com
> Sent: Mon, 10 Sep 2007 10:18:24 +0530 (IST)
> Subject: RE: Hostapd gives error with Madwifi.conf file
>
>
> On Mon, September 10, 2007 2:47 pm, maloomnahi at indiatimes.com said:
>> Hi Nazeer,
>>
>> I do not have a bridge interface, but as far as the documents related to
>> hostpad-amdwifi are concerned they have asked to keep that in the CONF
>> file. I have tried removing the bridge variable also, but no use. The
>> error is the same.
>
> With madwifi you need a bridge interface. It won't work without that.
>
>>
>> Thanks
>> PPN
>>
>> ----- Original Message -----
>> From: Nazeer Khan <Nazeer.Khan at nicta.com.au>
>> To: maloomnahi at indiatimes.com
>> Cc: Nazeer <nazeer.khan at nicta.com.au>, hostap at shmoo.com
>> Sent: Mon, 10 Sep 2007 10:12:32 +0530 (IST)
>> Subject: RE: Hostapd gives error with Madwifi.conf file
>>
>>
>> On Mon, September 10, 2007 2:34 pm, maloomnahi at indiatimes.com said:
>>> Hi Nazeer,
>>>
>>> Following was the result by using the same mentioned conf file
>>>
>>> [root at localhost hostapd-0.5.8]# hostapd -dd hostapd1.conf
>>> Configuration file: hostapd1.conf
>>> ctrl_interface_group=0
>>> ioctl(SIOCGIFINDEX): No such device
>>
>> Do u have a bridge interface "br0" ?????
>>
>>> madwifi driver initialization failed.
>>> eth1: Unable to setup interface.
>>> Flushing old station entries
>>> Deauthenticate all stations
>>> rmdir[ctrl_interface]: No such file or directory
>>>
>>> Is the issue with the CONF / CONFIG file or some driver settings?
>>> Thanks
>>> for everything ... in advance
>>>
>>> Regards
>>> PPN
>>>
>>>
>>> ----- Original Message -----
>>> From: Nazeer <nazeer.khan at nicta.com.au>
>>> To: maloomnahi at indiatimes.com
>>> Cc: hostap at shmoo.com
>>> Sent: Mon, 10 Sep 2007 09:20:10 +0530 (IST)
>>> Subject: RE: Hostapd gives error with Madwifi.conf file
>>>
>>> Use the following config file and if you have any errors post them
>>> here.....
>>>
>>> # Configuration File for WPA-PSK
>>> interface=ath0
>>> bridge=br0
>>> driver=madwifi
>>> logger_syslog=-1
>>> logger_syslog_level=2
>>> logger_stdout=-1
>>> logger_stdout_level=2
>>> debug=0
>>> dump_file=/tmp/hostapd.dump
>>> ctrl_interface=/var/run/hostapd
>>> ctrl_interface_group=0
>>> ssid=test_ssid
>>> macaddr_acl=0
>>> auth_algs=3
>>> wpa=3
>>> wpa_passphrase=XXXXXXXXXXX
>>> wpa_key_mgmt=WPA-PSK
>>> wpa_pairwise=TKIP CCMP
>>>
>>> -----Original Message-----
>>> From: hostap-bounces+nazeer.khan=nicta.com.au at shmoo.com
>>> [mailto:hostap-bounces+nazeer.khan=nicta.com.au at shmoo.com] On Behalf Of
>>> maloomnahi at indiatimes.com
>>> Sent: Monday, September 10, 2007 1:30 PM
>>> To: Nazeer Khan
>>> Cc: hostap at shmoo.com
>>> Subject: Re: Hostapd gives error with Madwifi.conf file
>>>
>>> Hi Nazeer,
>>>
>>> Thanks for the information, I had the same setting in my .config file
>>> and
>>> no
>>> use changing that. Below is the result I am getting now:
>>>
>>> [root at localhost hostapd-0.5.8]# hostapd -dd madwifi.conf
>>> Configuration file: madwifi.conf
>>> 'ine 14: invalid/unknown driver 'madwifi
>>> '.2 errors found in configuration file 'madwifi.conf'
>>>
>>> [root at localhost hostapd-0.5.8]# hostapd -dd hostapd.conf
>>> Configuration file: hostapd.conf
>>> ctrl_interface_group=0
>>> eapol_version=1
>>> ioctl[SIOCSIWMODE]: Operation not supported
>>> Could not set interface to master mode!
>>> madwifi driver initialization failed.
>>> eth0: Unable to setup interface.
>>> Flushing old station entries
>>> Deauthenticate all stations
>>> rmdir[ctrl_interface]: No such file or directory
>>>
>>> I am not finding any solution to this as of now, it would be great if
>>> you
>>> could give me a solution to this problem. Following are the additional
>>> information. .Config, hostapd.conf are set according to the ticket 539
>>> and
>>> as per lists.shmoo.com.
>>>
>>> Madiwfi-0.9.3.1
>>> Linux 2.6.18
>>> Hostapd 0.5.8
>>> AR5212 Chipset
>>>
>>> Thanks
>>> PPN
>>>
>>>
>>> ----- Original Message -----
>>> From: Nazeer Khan <Nazeer.Khan at nicta.com.au>
>>> To: maloomnahi at indiatimes.com
>>> Cc: hostap at shmoo.com
>>> Sent: Sat, 8 Sep 2007 06:35:52 +0530 (IST)
>>> Subject: Re: Hostapd gives error with Madwifi.conf file
>>>
>>>
>>> On Fri, September 7, 2007 5:10 pm, maloomnahi at indiatimes.com said:
>>>> Dear All,
>>>>
>>>> This email is with regards to a problem faced while running the
>>>> hostapdv0.5.8 with madwifi CONFIG file. Its about hostapd -dd
>>>> madwifi.conf
>>>> giving "Line 14: invalid/unknown driver 'madwifi" error on the prompt.
>>>
>>> I believe you have not compiled hostapd with madwifi support. Change
>>> the
>>> .config file to include madwifi driver too.
>>>
>>> # Driver interface for madwifi driver
>>> CONFIG_DRIVER_MADWIFI=y
>>> CFLAGS += -I/usr/src/madwifi-ng
>>>
>>> --
>>> Regards,
>>>
>>> Nazeer Khan
>>> Research Student
>>> Networks and Pervasive Computing
>>> National ICT Australia Limited
>>> Phone: +61 2 8374 5554
>>> Mobile: +61 415627442
>>>
>>> The imagination driving Australia's ICT future.
>>>
>>> _______________________________________________
>>> HostAP mailing list
>>> HostAP at shmoo.com
>>> http://lists.shmoo.com/mailman/listinfo/hostap
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Nazeer Khan
>> Research Student
>> Networks and Pervasive Computing
>> National ICT Australia Limited
>> Phone: +61 2 8374 5554
>> Mobile: +61 415627442
>>
>> The imagination driving Australia's ICT future.
>>
>> _______________________________________________
>> HostAP mailing list
>> HostAP at shmoo.com
>> http://lists.shmoo.com/mailman/listinfo/hostap
>>
>
>
> --
> Regards,
>
> Nazeer Khan
> Research Student
> Networks and Pervasive Computing
> National ICT Australia Limited
> Phone: +61 2 8374 5554
> Mobile: +61 415627442
>
> The imagination driving Australia's ICT future.
>
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>


-- 
Regards,

Nazeer Khan
Research Student
Networks and Pervasive Computing
National ICT Australia Limited
Phone: +61 2 8374 5554
Mobile: +61 415627442

The imagination driving Australia's ICT future.





More information about the Hostap mailing list