linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ath9k_htc: Add AP mode to supported modes
@ 2010-06-17  9:28 Sujith
  2010-06-17 18:05 ` Sujith
  2010-06-18 16:33 ` Pavel Roskin
  0 siblings, 2 replies; 7+ messages in thread
From: Sujith @ 2010-06-17  9:28 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
---
 drivers/net/wireless/ath/ath9k/htc_drv_init.c |    3 ++-
 drivers/net/wireless/ath/ath9k/htc_drv_main.c |    3 +++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
index 148b433..e1840b1 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
@@ -700,7 +700,8 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
 
 	hw->wiphy->interface_modes =
 		BIT(NL80211_IFTYPE_STATION) |
-		BIT(NL80211_IFTYPE_ADHOC);
+		BIT(NL80211_IFTYPE_ADHOC) |
+		BIT(NL80211_IFTYPE_AP);
 
 	hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
 
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 05445d8..2869cff 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -1283,6 +1283,9 @@ static int ath9k_htc_add_interface(struct ieee80211_hw *hw,
 	case NL80211_IFTYPE_ADHOC:
 		hvif.opmode = cpu_to_be32(HTC_M_IBSS);
 		break;
+	case NL80211_IFTYPE_AP:
+		hvif.opmode = cpu_to_be32(HTC_M_HOSTAP);
+		break;
 	default:
 		ath_print(common, ATH_DBG_FATAL,
 			"Interface type %d not yet supported\n", vif->type);
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 1/2] ath9k_htc: Add AP mode to supported modes
  2010-06-17  9:28 [PATCH 1/2] ath9k_htc: Add AP mode to supported modes Sujith
@ 2010-06-17 18:05 ` Sujith
  2010-06-18 16:33 ` Pavel Roskin
  1 sibling, 0 replies; 7+ messages in thread
From: Sujith @ 2010-06-17 18:05 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless

Hi,

BTW, these are RFC patches.
So John, you can skip these and resume the tiresome work of saving the world.
We superheroes have lots of shite to do.

Sujith

Sujith wrote:
> Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
> ---
>  drivers/net/wireless/ath/ath9k/htc_drv_init.c |    3 ++-
>  drivers/net/wireless/ath/ath9k/htc_drv_main.c |    3 +++
>  2 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> index 148b433..e1840b1 100644
> --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> @@ -700,7 +700,8 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
>  
>  	hw->wiphy->interface_modes =
>  		BIT(NL80211_IFTYPE_STATION) |
> -		BIT(NL80211_IFTYPE_ADHOC);
> +		BIT(NL80211_IFTYPE_ADHOC) |
> +		BIT(NL80211_IFTYPE_AP);
>  
>  	hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
>  
> diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
> index 05445d8..2869cff 100644
> --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
> +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
> @@ -1283,6 +1283,9 @@ static int ath9k_htc_add_interface(struct ieee80211_hw *hw,
>  	case NL80211_IFTYPE_ADHOC:
>  		hvif.opmode = cpu_to_be32(HTC_M_IBSS);
>  		break;
> +	case NL80211_IFTYPE_AP:
> +		hvif.opmode = cpu_to_be32(HTC_M_HOSTAP);
> +		break;
>  	default:
>  		ath_print(common, ATH_DBG_FATAL,
>  			"Interface type %d not yet supported\n", vif->type);
> -- 
> 1.7.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] ath9k_htc: Add AP mode to supported modes
  2010-06-17  9:28 [PATCH 1/2] ath9k_htc: Add AP mode to supported modes Sujith
  2010-06-17 18:05 ` Sujith
@ 2010-06-18 16:33 ` Pavel Roskin
  2010-06-25  9:33   ` Sujith
  2010-07-31  8:16   ` Kalle Valo
  1 sibling, 2 replies; 7+ messages in thread
From: Pavel Roskin @ 2010-06-18 16:33 UTC (permalink / raw)
  To: Sujith; +Cc: linville, linux-wireless

On Thu, 2010-06-17 at 14:58 +0530, Sujith wrote:
> Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
> ---
>  drivers/net/wireless/ath/ath9k/htc_drv_init.c |    3 ++-
>  drivers/net/wireless/ath/ath9k/htc_drv_main.c |    3 +++
>  2 files changed, 5 insertions(+), 1 deletions(-)

I confirm that the AP mode is working on TP-Link TL-WN422G (0cf3:1006).
I tested both patched of the series at once.

That's great news!  TL-WN422G has an external antenna, connects over USB
and supports AP mode.  Users keep asking about that combination of
features.  Now we have an answer :-)

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] ath9k_htc: Add AP mode to supported modes
  2010-06-18 16:33 ` Pavel Roskin
@ 2010-06-25  9:33   ` Sujith
  2010-07-31  8:16   ` Kalle Valo
  1 sibling, 0 replies; 7+ messages in thread
From: Sujith @ 2010-06-25  9:33 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: linville, linux-wireless

Pavel Roskin wrote:
> On Thu, 2010-06-17 at 14:58 +0530, Sujith wrote:
> > Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
> > ---
> >  drivers/net/wireless/ath/ath9k/htc_drv_init.c |    3 ++-
> >  drivers/net/wireless/ath/ath9k/htc_drv_main.c |    3 +++
> >  2 files changed, 5 insertions(+), 1 deletions(-)
> 
> I confirm that the AP mode is working on TP-Link TL-WN422G (0cf3:1006).
> I tested both patched of the series at once.
> 
> That's great news!  TL-WN422G has an external antenna, connects over USB
> and supports AP mode.  Users keep asking about that combination of
> features.  Now we have an answer :-)
> 

Thanks for testing, the buffering patch is a bit buggy.
Will send out updated patches doing things properly.

Sujith

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] ath9k_htc: Add AP mode to supported modes
  2010-06-18 16:33 ` Pavel Roskin
  2010-06-25  9:33   ` Sujith
@ 2010-07-31  8:16   ` Kalle Valo
  2010-07-31 18:26     ` Sujith
  1 sibling, 1 reply; 7+ messages in thread
From: Kalle Valo @ 2010-07-31  8:16 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: Sujith, linville, linux-wireless

Sorry for a late reply, I'm really backlogged :)

> I confirm that the AP mode is working on TP-Link TL-WN422G (0cf3:1006).
> I tested both patched of the series at once.
>
> That's great news!  TL-WN422G has an external antenna, connects over USB
> and supports AP mode.  Users keep asking about that combination of
> features.  Now we have an answer :-)

Cool, this would be really handy for testing wireless clients. Does it
also support proper multicast/broadcast buffering?

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] ath9k_htc: Add AP mode to supported modes
  2010-07-31  8:16   ` Kalle Valo
@ 2010-07-31 18:26     ` Sujith
  2010-07-31 19:00       ` Kalle Valo
  0 siblings, 1 reply; 7+ messages in thread
From: Sujith @ 2010-07-31 18:26 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Pavel Roskin, linville, linux-wireless

Kalle Valo wrote:
> Sorry for a late reply, I'm really backlogged :)
> 
> > I confirm that the AP mode is working on TP-Link TL-WN422G (0cf3:1006).
> > I tested both patched of the series at once.
> >
> > That's great news!  TL-WN422G has an external antenna, connects over USB
> > and supports AP mode.  Users keep asking about that combination of
> > features.  Now we have an answer :-)
> 
> Cool, this would be really handy for testing wireless clients. Does it
> also support proper multicast/broadcast buffering?

Nope, the firmware lacks CAB queue support, which is required for PS buffering
in Atheros' chipsets. Which is exactly why those patches were dropped. :(

Sujith

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] ath9k_htc: Add AP mode to supported modes
  2010-07-31 18:26     ` Sujith
@ 2010-07-31 19:00       ` Kalle Valo
  0 siblings, 0 replies; 7+ messages in thread
From: Kalle Valo @ 2010-07-31 19:00 UTC (permalink / raw)
  To: Sujith; +Cc: Pavel Roskin, linville, linux-wireless

Sujith <Sujith.Manoharan@atheros.com> writes:

> Kalle Valo wrote:
>> 
>> > I confirm that the AP mode is working on TP-Link TL-WN422G (0cf3:1006).
>> > I tested both patched of the series at once.
>> >
>> > That's great news!  TL-WN422G has an external antenna, connects over USB
>> > and supports AP mode.  Users keep asking about that combination of
>> > features.  Now we have an answer :-)
>> 
>> Cool, this would be really handy for testing wireless clients. Does it
>> also support proper multicast/broadcast buffering?
>
> Nope, the firmware lacks CAB queue support, which is required for PS
> buffering in Atheros' chipsets. Which is exactly why those patches
> were dropped. :(

I was just afraid of this. Oh well, AP support, USB and cheap sounded
like an impossible combination :/

Thank you for letting me know.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-31 19:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-17  9:28 [PATCH 1/2] ath9k_htc: Add AP mode to supported modes Sujith
2010-06-17 18:05 ` Sujith
2010-06-18 16:33 ` Pavel Roskin
2010-06-25  9:33   ` Sujith
2010-07-31  8:16   ` Kalle Valo
2010-07-31 18:26     ` Sujith
2010-07-31 19:00       ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).