Modify

Opened 21 months ago

Last modified 21 months ago

#22290 new defect

rt2x00 AP and Adhoc combination

Reported by: markus@… Owned by: developers
Priority: low Milestone: Features Paradise
Component: kernel Version: Chaos Calmer 15.05
Keywords: adhoc multimode combinations Cc:

Description

HI

I have some routers with rt2860pci wireless and want to add Ap and Adhoc for batman and client access at on once (Freifunk common setup) , but the driver for the rt2860 is limited. Any idea why it wont work to add just NL80211_IFTYPE_ADHOC at rt2x00dev.c

--- a/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
@@ -1284,7 +1284,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) | BIT(NL80211_IFTYPE_STATION);
+       if_limit->types = BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_STATION) ;
 #ifdef CPTCFG_MAC80211_MESH
        if_limit->types |= BIT(NL80211_IFTYPE_MESH_POINT);
 #endif

Attachments (0)

Change History (2)

comment:1 Changed 21 months ago by markus@…

--- a/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
correct should it be this !

+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
@@ -1284,7 +1284,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) | BIT(NL80211_IFTYPE_STATION);

+ if_limit->types = BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_ADHOC) ;

#ifdef CPTCFG_MAC80211_MESH

if_limit->types |= BIT(NL80211_IFTYPE_MESH_POINT);

#endif

comment:2 Changed 21 months ago by anonymous

I guess you answer your own question here: "the driver for the rt2860 is limited".
Which is probably isn't right either. Have you looked into the rt2860 specs? Does
it actually have proper support for multiple TSF timers and is there any encryption on your links (so can the crypto of the rt2860 support 3- or 4- address keys)? Otherwise the IBSS + AP would only work half-decent if you use software crypto and the AP is the secondary inferface (it needs to be initialized and brought up after the IBSS has connected/created). Also, one more downside of this is that the clients of the AP might experience strange data and packet loss when they are power-saving due to sudden changes of the jumpy TSF. (Depending on the client, they also might detect the secondary AP as rogue, or do frequent disconnects for no apparent reason, etc...).

If you want to save yourself the trouble: Either go for full mesh or get a device that
supports those modes (i.e.: devices with two or three independent wifi chips).

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.