Hi,

I wonder how to fix correctly (or what would be the preferred way) wrong MAC
generation for multi BSSID setups on rt2800. As rt2800 hw can only be
configured to mask the last three bits of the programmed MAC addresses, we
can't change first byte of the MAC - otherwise it doesn't work. More
information about this issue [1].

With this patch[2] and the change in the mac80211_generate_mac() bellow it
does work fine out of the box in AA. Thanks.

1. http://www.spinics.net/lists/linux-wireless/msg99567.html
2. http://patchwork.openwrt.org/patch/2928/

-- ynezz

diff --git a/package/mac80211/files/lib/wifi/mac80211.sh
b/package/mac80211/files/lib/wifi/mac80211.sh
index 1b0bea7..8de241c 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -278,7 +278,7 @@ mac80211_generate_mac() {
        local oIFS="$IFS"; IFS=":"; set -- $mac; IFS="$oIFS"
 
        local b2mask=0x00
-       [ $off -gt 0 ] && b2mask=0x02
+       #[ $off -gt 0 ] && b2mask=0x02
 
        printf "%02x:%s:%s:%s:%02x:%02x" \
                $(( 0x$1 | $b2mask )) $2 $3 $4 \
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to