On Tue, 2013-06-25 at 00:20 -0400, jonsm...@gmail.com wrote: > Can this be made to work on Ralink? When I have the adhoc0 interface > up bringing up ap0 says interface busy..... >
Ralink is not good for supporting this type of setup. I had tried AP and client mode, and after some hacking it sort-of worked. >From my notes: "ifconfig: SIOCSIFFLAGS: Device or resource busy". Looking at the output of 'iw list' the "valid interface combinations" only listed AP and mesh mode, not Station/Managed mode. On further investigation, none of the Ralink chips are fully supporting AP+Sta mode. After forcing the driver to report that it can support the combination, I was able to configure both interfaces as desired. The hack gives the following combination output: Pre: valid interface combinations: * #{ AP, mesh point } <= 8, total <= 8, #channels <= 1 Post: valid interface combinations: * #{ managed, AP, mesh point } <= 8, total <= 8, #channels <= 1 You may wish to force add 'adhoc' (P2P?) mode, and see how far it gets you. This was on an RT28xx USB device, so you may have more success on others. Hack (for test) looked like: --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c @@ -1264,7 +1264,7 @@ static inline void rt2x00lib_set_if_comb */ if_limit = &rt2x00dev->if_limits_ap; if_limit->max = rt2x00dev->ops->max_ap_intf; - if_limit->types = BIT(NL80211_IFTYPE_AP); + if_limit->types = BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_AP); #ifdef CONFIG_MAC80211_MESH if_limit->types |= BIT(NL80211_IFTYPE_MESH_POINT); #endif A nice Atheros (AR9330) shows good support for combinations: valid interface combinations: * #{ managed, WDS, P2P-client } <= 2048, #{ IBSS, AP, mesh point, P2P-GO } <= 8, total <= 2048, #channels <= 1 Conor _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel