On 2012-07-19 5:02 PM, Daniel Golle wrote:
> without this hostapd doesn't work on any of the RT3xxx systems I tested.
> 
> Signed-off-by: Daniel Golle <dgo...@allnet.de>
> ---
>  ...10-rt2x00-mac80211-manage-AP-netdev-carrier-state.patch | 14 
> ++++++++++++++
>  1 file changed, 14 insertions(+)
>  create mode 100644 
> package/mac80211/patches/610-rt2x00-mac80211-manage-AP-netdev-carrier-state.patch
> 
> diff --git 
> a/package/mac80211/patches/610-rt2x00-mac80211-manage-AP-netdev-carrier-state.patch
>  
> b/package/mac80211/patches/610-rt2x00-mac80211-manage-AP-netdev-carrier-state.patch
> new file mode 100644
> index 0000000..a1d9f06
> --- /dev/null
> +++ 
> b/package/mac80211/patches/610-rt2x00-mac80211-manage-AP-netdev-carrier-state.patch
> @@ -0,0 +1,14 @@
> +Index: compat-wireless-2012-04-17/net/mac80211/iface.c
> +===================================================================
> +--- compat-wireless-2012-04-17.orig/net/mac80211/iface.c     2012-05-09 
> 01:00:39.197975402 +0200
> ++++ compat-wireless-2012-04-17/net/mac80211/iface.c  2012-05-09 
> 01:02:32.514918371 +0200
> +@@ -411,8 +407,7 @@
> +             ieee80211_bss_info_change_notify(sdata, changed);
> + 
> +             if (sdata->vif.type == NL80211_IFTYPE_STATION ||
> +-                sdata->vif.type == NL80211_IFTYPE_ADHOC ||
> +-                sdata->vif.type == NL80211_IFTYPE_AP)
> ++                sdata->vif.type == NL80211_IFTYPE_ADHOC)
> +                     netif_carrier_off(dev);
> +             else
> +                     netif_carrier_on(dev);
I think this needs to be sorted out upstream. As far as I know, nobody
so far has figured out yet why managing the netdev carrier state causes
the hostapd issues and why it appears to only happen on rt2x00.

- Felix

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to