Hello,

WL-300g users might have the problem that their sole LAN port might be either used as IP-over-Ethernet port or as Internet-Access-over-Ethernet port (i.e. PPPoE port), but not both.

If you wanted to dial up using PPPoE and, at the same time, bridge the WLAN interface with the LAN interface, you were AFAIK out of luck.

But I've made a patch to make this work. This is how it is done:


(1) Apply this to "src/broadcom/gateway":

Code:
--- rc/network.c.orig.0 2005-01-05 00:11:38.000000000 +0100
+++ rc/network.c        2005-04-01 00:00:32.000000000 +0200
@@ -584,8 +584,14 @@
                * ip-up/ip-down scripts upon link's connect/disconnect.
                */
                if (strcmp(wan_proto, "pppoe") == 0) {
+                       char * wan_ifname_pppoe = nvram_get(strcat_r(prefix, "ifname_pppoe", tmp));
+
+                       if (wan_ifname_pppoe==NULL) {
+                         wan_ifname_pppoe = nvram_safe_get(strcat_r(prefix, "ifname", tmp));
+                       }
+
                        char *pppoe_argv[] = { "pppoecd",
-                                              nvram_safe_get(strcat_r(prefix, "ifname", tmp)),
+                                              wan_ifname_pppoe,
                                               "-u", nvram_safe_get(strcat_r(prefix, "pppoe_username", tmp)),
                                               "-p", nvram_safe_get(strcat_r(prefix, "pppoe_passwd", tmp)),
                                               "-r", nvram_safe_get(strcat_r(prefix, "pppoe_mru", tmp)),
(2) update the device firmware respectively
(3) nvram set wan0_ifname_pppoe=br0
(4) nvram commit
(5) edit your /usr/local/sbin/post-boot to additionally contain "brctl addif br0 eth0"
(6) flashfs save
(7) flashfs commit
(8) use the same settings "IP Config/WAN & LAN/WAN IP Setting" and "IP Config/WAN & LAN/LAN IP Setting"
(9) reboot and have fun.

Oleg, it would be nice if you added this patch to your development tree (e.g. 1.9.2.7-5 or so)