OpenWrt Forum Archive

Topic: wl0_macmode problem

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

Hi all. I've got two WRT54GS v1.1 devices in ad-hoc mode. When I flash them with latest experimental firmware and then set wl0_macmode=allow and corresponding MAC's everything works. But when I compile my own firmware (I'm only adding things and using ferm for firewall rules) then it does not work - I can not ping one from the other. wl0_macmode=disabled works but allow does not allow and deny does not deny MAC's in wl0_maclist. Do you have any idea what is wrong?

Here's list of my wl0_* variables:

 wl0_active_mac=
wl0_afterburner=off
wl0_antdiv=-1
wl0_ap_ip=
wl0_ap_isolate=0
wl0_ap_ssid=
wl0_auth=0
wl0_auth_mode=open
wl0_bcn=100
wl0_channel=13
wl0_closed=0
wl0_corerev=7
wl0_country=Worldwide
wl0_country_code=AU
wl0_crypto=tkip
wl0_dtim=1
wl0_frag=2346
wl0_frameburst=off
wl0_gmode=1
wl0_gmode_protection=off
wl0_hwaddr=00:12:17:E7:8A:4A
wl0_ifname=eth1
wl0_infra=0
wl0_key1=25D7AF35747493102579658236
wl0_key2=
wl0_key3=
wl0_key4=
wl0_key=1
wl0_lazywds=0
wl0_mac_deny=
wl0_mac_list=
wl0_maclist=00:13:10:15:3C:6C 00:12:17:E7:8A:48
wl0_macmode1=disabled
wl0_macmode=disabled
wl0_mode=sta
wl0_mrate=0
wl0_net_mode=mixed
wl0_passphrase=
wl0_phytype=g
wl0_phytypes=g
wl0_plcphdr=long
wl0_radio=1
wl0_radioids=BCM2050
wl0_radius_ipaddr=
wl0_radius_key=
wl0_radius_port=1812
wl0_rate=0
wl0_rateset=default
wl0_rts=2347
wl0_ssid=wlan@thenet
wl0_txpwr=84
wl0_unit=0
wl0_wds=
wl0_wep=disabled
wl0_wep_bit=128
wl0_wep_buf=
wl0_wep_gen=
wl0_wep_last=
wl0_wpa_gtk_rekey=3600
wl0_wpa_psk=

Oh one more thing, eth1 and vlan0 are bridged together (br0). I put all three MAC addresses of the IP into the wl0_maclist NVRAM variable of the opposite AP but it simply does not work.

(Last edited by tosuja on 20 Jun 2005, 09:37)

It could be caused by bug in wificonf.c (command wifi up). wificonf did not parse mac addresses from wl0_maclist.
You can observe or workaround it by command wl mac.
The bug should be fixed in current CVS (24.6.2005)

(Last edited by samot on 25 Jun 2005, 06:24)

Hmm, I tested whiterussian and it still does not work. "wl mac" shows maclist and "wl macmode" shows mode but it still does not allow/deny listed MACs.

The discussion might have continued from here.