#1960: a question about using wep with hostapd
---------------------------------+------------------------------------------
      Reporter:  bryant_li       |       Owner:        
          Type:  defect          |      Status:  closed
      Priority:  minor           |   Milestone:        
     Component:  madwifi: other  |     Version:  v0.9.4
    Resolution:  duplicate       |    Keywords:  hostap
Patch_attached:  0               |  
---------------------------------+------------------------------------------
Changes (by mrenzmann):

  * status:  new => closed
  * resolution:  => duplicate

Old description:

> My harware environment is Atheros R5212 and an 1000m ehternet
> card,software is centos4.2(2.6.9 kernel)+madwifi0.9.4+hostapd 0.5.10
>
> I want to use wep encryption.
> 1.Only use madwifi.It works fine.
> First,I install madwifi correctly and I input commands below:
>  modprobe ath_pci
>  wlanconfig ath0 destroy
>  wlanconfig ath0 create wlandev wifi0 wlanmode ap
>  iwconfig ath0 essid "test" key 1111-2222-33
>  ifconfig ath0 10.0.0.1 netmask 255.255.255.0
>
> I use iptables to implement NAT.
> In a  terminal,I make the correct configration,and it could ping remote
> web site successful.
>
> 2.use Hostapd,it doesn't work.
> Here is my hostpad.conf file:
>
> interface=ath0
> driver=madwifi
> debug=0
> dump_file=/tmp/hostapd.dump
> ctrl_interface=/var/run/hostapd
> ctrl_interface_group=0
> ssid=test
> auth_algs=3
> ignore_broadcast_ssid=0
>
> wep_default_key=1
>
> wep_key1=1111222233
> bridge_packets=1
>
> I run hostapd -d hostapd.conf
>
> The screen shot is :
> Configuration file: madwifi.conf
> madwifi_set_iface_flags: dev_up=0
> madwifi_set_privacy: enabled=0
> BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
> ath0: IEEE 802.11 Fetching hardware channel/rate support not supported.
> Flushing old station entries
> madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
> madwifi_sta_deauth: Failed to deauth STA (addr ff:ff:ff:ff:ff:ff reason
> 3)
> Could not connect to kernel driver.
> Deauthenticate all stations
> madwifi_set_privacy: enabled=0
> madwifi_del_key: addr=00:00:00:00:00:00 key_idx=0
> madwifi_del_key: addr=00:00:00:00:00:00 key_idx=1
> madwifi_del_key: addr=00:00:00:00:00:00 key_idx=2
> madwifi_del_key: addr=00:00:00:00:00:00 key_idx=3
> madwifi_set_key: alg=WEP addr=00:00:00:00:00:00 key_idx=1
> madwifi_set_privacy: enabled=1
> Using interface ath0 with hwaddr 00:1d:0f:30:4d:bb and ssid 'test'
> ath0: Setup of interface done.
> Wireless event: cmd=0x8c03 len=20
> ath0: STA 00:1d:60:b1:af:8b IEEE 802.11: associated
>   Wireless event: cmd=0x8c02 len=101
> Custom wireless event: 'STA-TRAFFIC-STAT
> mac=00:1d:60:b1:af:8b
> rx_packets=6
> rx_bytes=465
> tx_packets=0
> tx_bytes=0
> '
> Wireless event: cmd=0x8c04 len=20
> ath0: STA 00:1d:60:b1:af:8b IEEE 802.11: disassociated
> Wireless event: cmd=0x8c03 len=20
> ath0: STA 00:1d:60:b1:af:8b IEEE 802.11: associated
>   New STA
>
> As you see ,the terminl can't associated as normal,it disassociated at
> soon as associated.If I run dhcpd on the server ,the clients will not
> able to obtain an IP.
> I don,t know what's the problem.Could anyone help me?Thanks a lot.

New description:

 My harware environment is Atheros R5212 and an 1000m ehternet
 card,software is centos4.2(2.6.9 kernel)+madwifi0.9.4+hostapd 0.5.10

 I want to use wep encryption.
 1.Only use madwifi.It works fine.
 First,I install madwifi correctly and I input commands below:
 {{{
 modprobe ath_pci
 wlanconfig ath0 destroy
 wlanconfig ath0 create wlandev wifi0 wlanmode ap
 iwconfig ath0 essid "test" key 1111-2222-33
 ifconfig ath0 10.0.0.1 netmask 255.255.255.0
 }}}

 I use iptables to implement NAT.
 In a  terminal,I make the correct configration,and it could ping remote
 web site successful.

 2.use Hostapd,it doesn't work.
 Here is my hostpad.conf file:

 {{{
 interface=ath0
 driver=madwifi
 debug=0
 dump_file=/tmp/hostapd.dump
 ctrl_interface=/var/run/hostapd
 ctrl_interface_group=0
 ssid=test
 auth_algs=3
 ignore_broadcast_ssid=0

 wep_default_key=1

 wep_key1=1111222233
 bridge_packets=1
 }}}

 I run hostapd -d hostapd.conf

 The screen shot is :
 {{{
 Configuration file: madwifi.conf
 madwifi_set_iface_flags: dev_up=0
 madwifi_set_privacy: enabled=0
 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
 ath0: IEEE 802.11 Fetching hardware channel/rate support not supported.
 Flushing old station entries
 madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
 madwifi_sta_deauth: Failed to deauth STA (addr ff:ff:ff:ff:ff:ff reason 3)
 Could not connect to kernel driver.
 Deauthenticate all stations
 madwifi_set_privacy: enabled=0
 madwifi_del_key: addr=00:00:00:00:00:00 key_idx=0
 madwifi_del_key: addr=00:00:00:00:00:00 key_idx=1
 madwifi_del_key: addr=00:00:00:00:00:00 key_idx=2
 madwifi_del_key: addr=00:00:00:00:00:00 key_idx=3
 madwifi_set_key: alg=WEP addr=00:00:00:00:00:00 key_idx=1
 madwifi_set_privacy: enabled=1
 Using interface ath0 with hwaddr 00:1d:0f:30:4d:bb and ssid 'test'
 ath0: Setup of interface done.
 Wireless event: cmd=0x8c03 len=20
 ath0: STA 00:1d:60:b1:af:8b IEEE 802.11: associated
   Wireless event: cmd=0x8c02 len=101
 Custom wireless event: 'STA-TRAFFIC-STAT
 mac=00:1d:60:b1:af:8b
 rx_packets=6
 rx_bytes=465
 tx_packets=0
 tx_bytes=0
 '
 Wireless event: cmd=0x8c04 len=20
 ath0: STA 00:1d:60:b1:af:8b IEEE 802.11: disassociated
 Wireless event: cmd=0x8c03 len=20
 ath0: STA 00:1d:60:b1:af:8b IEEE 802.11: associated
   New STA
 }}}

 As you see ,the terminl can't associated as normal,it disassociated at
 soon as associated.If I run dhcpd on the server ,the clients will not able
 to obtain an IP.
 I don,t know what's the problem.Could anyone help me?Thanks a lot.

Comment:

 Duplicate of #1959.

-- 
Ticket URL: <https://madwifi.org/ticket/1960#comment:1>
madwifi.org <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets

Reply via email to