[OpenWrt-Devel] [PATCH v2][netifd] Initialize wireless interface attributes in proper function

Felix Fietkau nbd at openwrt.org
Sat Sep 26 07:53:52 EDT 2015


On 2015-09-14 11:53, Dmitry Ivanov wrote:
> Initialize wireless interface attributes in proper function.
> 
> Currently multicast to unicast feature may be configured for incorrect wireless interface in case of reconfiguration.
> 
> Test case:
> 
> Initial wireless configuration:
> 
> config wifi-iface
>   option mode ap
>   option disabled 1
> 
> config wifi-iface
>   option mode sta
>   option disabled 0
> 
> config wifi-iface
>   option mode ap
>   option disabled 0
> 
> After reboot, multicast to unicast feature is configured for interface #3 (wlan0-1) only.
> 
> Next, enable interface #1 and issue "wifi" command. Now, multicast to unicast feature is configured for interface #2 (wlan0) which is wrong.
> It should be configured for interfaces #1 and #3 only. This patch resolves this problem.
Applied with some modifications. Again, please don't repeat the message
subject in the email text, as it gets duplicated in the git commit.

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list