On Thursday 28 April 2011 23:30:32 Felix Fietkau wrote:
> On 2011-04-27 5:50 PM, Marek Lindner wrote:
> > The madwifi driver uses the first byte of the wifi mac address
> > for its VAP mechanism: Each VAP is assigned another value for
> > the first byte to distinguish the traffic for the various VAPs.
> > Therefore, the driver silently assumes the first byte of the
> > mac address is zero which is not always the case. This (ugly)
> > workaround always sets the first byte to zero to support all
> > mac addresses.
> 
> How about changing the code to calculate the VAP ID by using dev_addr[0]
> ^ vap_addr[0] instead?

I experimented with the idea of changing the VAP ID calculation by changing 
ATH_GET_VAP_ID(), ATH_SET_VAP_BSSID() and maybe others. However, I always 
encountered unwanted side effects (bugs). Most likely due to the fact that I 
don't understand the madwifi code too well. 
The patch I proposed has been thoroughly tested and is used in production 
environments (a couple hundred nodes). Nevertheless, feel free to implement a 
cleaner solution.

Regards,
Marek
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to