2013-12-30 22:00:35

by Bogdan Radulescu

[permalink] [raw]
Subject: [PATCH] Add STA mode support for devices based on Ralink RT5350

Signed-off-by: Bogdan Radulescu <[email protected]>

---
drivers/net/wireless/rt2x00/rt2x00dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index 9dd92a7..606e968 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -1236,7 +1236,7 @@ static inline void rt2x00lib_set_if_combinations(struct rt2x00_dev *rt2x00dev)
*/
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_AP) | BIT(NL80211_IFTYPE_STATION);
#ifdef CONFIG_MAC80211_MESH
if_limit->types |= BIT(NL80211_IFTYPE_MESH_POINT);
#endif
--
1.8.4



2013-12-31 16:33:13

by Gertjan van Wingerde

[permalink] [raw]
Subject: Re: [PATCH] Add STA mode support for devices based on Ralink RT5350

Hi Bogdan,

> On 31 dec. 2013, at 01:00, Bogdan Radulescu <[email protected]> wrote:
>
> Signed-off-by: Bogdan Radulescu <[email protected]>
>
> ---
> drivers/net/wireless/rt2x00/rt2x00dev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
> index 9dd92a7..606e968 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00dev.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
> @@ -1236,7 +1236,7 @@ static inline void rt2x00lib_set_if_combinations(struct rt2x00_dev *rt2x00dev)
> */
> 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_AP) | BIT(NL80211_IFTYPE_STATION);
> #ifdef CONFIG_MAC80211_MESH
> if_limit->types |= BIT(NL80211_IFTYPE_MESH_POINT);
> #endif
>

I'm sorry, but this cannot be correct. All, this patch does is allowing multiple AP and STA interfaces exist next to each other. This is something that is simply not possible with this device.

Why do you think that STA mode is not supported for the RT5350?

---
Gertjan