rt2x00 doesn't work with hostapd, the driver seems to wrongly interpret the carrier state and refuse to send beacons if there is no carrier. there is a workaround out there to fix this (see below), but the right way would be to have this done similar to other mac80211 driver which do not require this workaround. anyone got an idea what's wrong here? -------- Original Message -------- Subject: Re: [OpenWrt-Devel] [PATCH] mac80211: import patch for rt2x00 Date: Thu, 19 Jul 2012 17:09:13 +0200 From: Felix Fietkau <nbd@xxxxxxxxxxx> To: OpenWrt Development List <openwrt-devel@xxxxxxxxxxxxxxxxx> CC: Daniel Golle <dgolle@xxxxxxxxx> 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 <dgolle@xxxxxxxxx> --- > ...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 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html