Opened 7 years ago

Closed 7 years ago

#7917 closed defect (invalid)

wpa_supplicant in backfire rc2 broken for dhcp on interface after association

Reported by: kshogan@… Owned by: developers
Priority: high Milestone: Backfire 10.03.1
Component: packages Version: Backfire 10.03.1 RC2
Keywords: wpa_supplicant dhcp Cc:


wpa_supplicant in backfire RC3 is broken for passing dhcp requests. Standard download and compile for ubnt picostation. dhcp packets are sent out, responded by AP, but never make it back to set i/f. association works fine, and setting a static on the network succeeds with flowing traffic.

Tested on and

Linux OpenWrt #1 Fri Sep 10 19:53:24 GMT 2010 mips GNU/Linux


# Copyright (C) 2006

config interface loopback
        option ifname   lo
        option proto    static
        option ipaddr
        option netmask

config interface lan
        option ifname   eth0
        option type     bridge
        option proto    static
        option ipaddr
        option netmask

config interface wan
        option ifname   ath0
        option type     bridge
        option proto    dhcp


ath0      IEEE 802.11g  ESSID:"SunLife"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:11:95:56:64:69   
          Bit Rate:6 Mb/s   Tx-Power:20 dBm   
          RTS thr:off   Fragment thr:off
          Encryption key:8140-9CAE-DD9A-5E81-D433-1030-4067-F078   Security mode:restricted
          Power Management:off
          Link Quality=74/70  Signal level=-22 dBm  Noise level=-96 dBm
          Rx invalid nwid:11328  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@OpenWrt:/etc/config# ps -edf
    1 root      1364 S    init       
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [events/0]
    5 root         0 SW   [khelper]
    8 root         0 SW   [async/mgr]
   23 root         0 SW   [sync_supers]
   25 root         0 SW   [bdi-default]
   27 root         0 SW   [kblockd/0]
   54 root         0 SW   [kswapd0]
   55 root         0 SW   [aio/0]
   68 root         0 SW   [mtdblockd]
  227 root      1372 S    /bin/ash --login 
  243 root      1368 S    syslogd -C16 
  245 root      1348 S    klogd 
  259 root       776 S    /sbin/hotplug2 --override --persistent --set-worker /
  588 root      1352 S    telnetd -l /bin/ 
  611 nobody     908 S    /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
  640 root         0 SWN  [jffs2_gcd_mtd3]
  668 root      1360 S    watchdog -t 5 /dev/watchdog 
  679 root      1144 S    /usr/sbin/dropbear -p 22 -P /var/run/ 
 4798 root      1360 S    udhcpc -t 0 -i br-wan -b -p /var/run/ 
 4911 root      1108 S    wpa_supplicant -b br-wan -B -P /var/run/
 4934 root      1356 R    ps -edf 

root@OpenWrt:/etc/config# brctl show
bridge name     bridge id               STP enabled     interfaces
br-lan          8000.00156daed225       no              eth0
br-wan          8000.00156dadd225       no              ath0

br-wan    Link encap:Ethernet  HWaddr 00:15:6D:AD:D2:25  
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:353 (353.0 B)  TX bytes:43524 (42.5 KiB)

Set to static

root@OpenWrt:/etc/config# ifconfig br-wan
root@OpenWrt:/etc/config# ping
PING ( 56 data bytes
64 bytes from seq=0 ttl=127 time=12.851 ms
64 bytes from seq=1 ttl=127 time=3.947 ms

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by Kelly Hogan <kshogan@…>

Tested in trunk: same results. Added configuration files below for more information.

config wifi-device  wifi0
        option type     atheros
        option channel  auto


config wifi-iface
        option device   wifi0
        option network  wan
        option mode     sta
        option ssid     SunLife
        option encryption psk
        option key      KJHSKJHJSHDley

root@OpenWrt:/tmp/run# wpa_supplicant -Dmadwifi -bbr-wan -iath0 -P /var/run/wifi -c /var/run/wpa_supplicant-ath0.conf -B -dd
Initializing interface 'ath0' conf '/var/run/wpa_supplicant-ath0.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'br-wan'
Configuration file '/var/run/wpa_supplicant-ath0.conf' -> '/var/run/wpa_supplicant-ath0.conf'
Reading configuration file '/var/run/wpa_supplicant-ath0.conf'
Line: 2 - start of a new network block
scan_ssid=1 (0x1)
ssid - hexdump_ascii(len=7):
     53 75 6e 4c 69 66 65                              SunLife         
key_mgmt: 0x2
proto: 0x1
PSK (ASCII passphrase) - hexdump_ascii(len=12): [REMOVED]
PSK (from passphrase) - hexdump(br-wan: port 1(ath0) entering forwarding state
len=32): [REMOVED]
Priority group 0
   id=0 ssid='SunLife'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
Own MAC address: 00:15:6d:ad:d2:25
Receiving packets from bridge interface 'br-wan'
madwifi_del_key: addr=ff:ff:ff:ff:ff:ff key_idx=0
madwifi_del_key: addr=ff:ff:ff:ff:ff:ff key_idx=1
madwifi_del_key: addr=ff:ff:ff:ff:ff:ff key_idx=2
madwifi_del_key: addr=ff:ff:ff:ff:ff:ff key_idx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
Added interface ath0

root@OpenWrt:/tmp/run# udhcpc -i br-wan
udhcpc (v1.17.2) started
Sending discover...
Sending discover...
Sending discover...
Time Out...

comment:2 Changed 7 years ago by clemens-john@…

I can reproduce this problem here on Fonera with backfire branch on revision 25628.

comment:3 Changed 7 years ago by nbd

  • Resolution set to invalid
  • Status changed from new to closed

Two errors in your config. First: You put a client mode interface into a bridge, that is not supported. Second: you referenced ath0 in /etc/config/network.
Remove the ifname and the type options in /etc/config/network, then it should work.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.