OpenWrt Forum Archive

Topic: wpa client's bridge breaks when wired network connected

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I have setup a device here as AP client.
device info -> http://wiki.openwrt.org/OpenWrtDocs/Har … A8-4_CE8-1
I wanted it to be a transparent client. The unit has only one wired port and one radio.
When I run wpa_supplicant without anything connected to the wired port, I can easily reach the web interface of the client.
As soon as I connect something to the wired port, my bridge goes down and my wpa_supplicant disconnects.

Here is some output from my serial console:

Configuring MAC for full duplex
br-lan: port 2(ath0) entering disabled state
br-lan: port 2(ath0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 2(ath0) entering forwarding state
br-lan: port 2(ath0) entering disabled state
br-lan: port 2(ath0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 2(ath0) entering forwarding state
br-lan: port 2(ath0) entering disabled state
br-lan: port 2(ath0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 2(ath0) entering forwarding state
....

And from wpa_cli:

> list
network id / ssid / bssid / flags
0       LumWifi any     [CURRENT]
> <2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
<2>Associated with 00:4f:69:51:30:11
<2>WPA: Key negotiation completed with 00:4f:69:51:30:11 [PTK=TKIP GTK=TKIP]
<2>CTRL-EVENT-CONNECTED - Connection to 00:4f:69:51:30:11 completed (reauth) [id=0 id_str=]
<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
<2>Associated with 00:4f:69:51:30:11
<2>WPA: Key negotiation completed with 00:4f:69:51:30:11 [PTK=TKIP GTK=TKIP]
<2>CTRL-EVENT-CONNECTED - Connection to 00:4f:69:51:30:11 completed (reauth) [id=0 id_str=]
<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
<2>Associated with 00:4f:69:51:30:11
<2>WPA: Key negotiation completed with 00:4f:69:51:30:11 [PTK=TKIP GTK=TKIP]
<2>CTRL-EVENT-CONNECTED - Connection to 00:4f:69:51:30:11 completed (reauth) [id=0 id_str=]
<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
<2>Associated with 00:4f:69:51:30:11
<2>WPA: Key negotiation completed with 00:4f:69:51:30:11 [PTK=TKIP GTK=TKIP]
<2>CTRL-EVENT-CONNECTED - Connection to 00:4f:69:51:30:11 completed (reauth) [id=0 id_str=]
<2>CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
<2>Associated with 00:4f:69:51:30:11
<2>WPA: Key negotiation completed with 00:4f:69:51:30:11 [PTK=TKIP GTK=TKIP]
<2>CTRL-EVENT-CONNECTED - Connection to 00:4f:69:51:30:11 completed (reauth) [id=0 id_str=]

As soon I disconnect my wired port, I get acces back to my client's web interface through wireless. (I have no loop setup, the pc I connect to the client's wired port is a stand alone pc, no other connection on it !!! )

Can someone explain this behavior?

BTW: I have no iptables running on the client. So a straight forward solution for a routed client that acts transparent would be great as well. If this could solve my problem, I'm happy to put iptables on it.

Kind regards

Ok, i'll answer to my own topic,

This did the fix

set in /etc/config/wireless following option for wifi0

option wds 1

or use

iwpriv ath0 wds 1

Grtzzzzzzz

Bart

The discussion might have continued from here.