Linux wireless drivers development
 help / color / mirror / Atom feed
* [RFC/WIP 23/33] ath9k_htc: Enable AP mode
@ 2011-01-21  3:02 Sujith
  2011-01-21  8:43 ` Johannes Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Sujith @ 2011-01-21  3:02 UTC (permalink / raw)
  To: linux-wireless; +Cc: ath9k-devel

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

Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
---
 drivers/net/wireless/ath/ath9k/htc_drv_init.c |    3 ++-
 1 files changed, 2 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 dc96c06..b4ae719 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
@@ -753,7 +753,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;
 
-- 
1.7.3.5


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

* Re: [RFC/WIP 23/33] ath9k_htc: Enable AP mode
  2011-01-21  3:02 [RFC/WIP 23/33] ath9k_htc: Enable AP mode Sujith
@ 2011-01-21  8:43 ` Johannes Berg
  2011-01-21 10:00   ` Sujith
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2011-01-21  8:43 UTC (permalink / raw)
  To: Sujith; +Cc: linux-wireless, ath9k-devel

On Fri, 2011-01-21 at 08:32 +0530, Sujith wrote:
> From: Sujith Manoharan <Sujith.Manoharan@atheros.com>
> 
> Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
> ---
>  drivers/net/wireless/ath/ath9k/htc_drv_init.c |    3 ++-
>  1 files changed, 2 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 dc96c06..b4ae719 100644
> --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> @@ -753,7 +753,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);

It'd be kinda nice if that could be made dependent on firmware
capability bits or version since otherwise everybody will think they
have it ... and it will not work?

johannes


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

* Re: [RFC/WIP 23/33] ath9k_htc: Enable AP mode
  2011-01-21  8:43 ` Johannes Berg
@ 2011-01-21 10:00   ` Sujith
  0 siblings, 0 replies; 3+ messages in thread
From: Sujith @ 2011-01-21 10:00 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, ath9k-devel

Johannes Berg wrote:
> On Fri, 2011-01-21 at 08:32 +0530, Sujith wrote:
> > From: Sujith Manoharan <Sujith.Manoharan@atheros.com>
> > 
> > Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
> > ---
> >  drivers/net/wireless/ath/ath9k/htc_drv_init.c |    3 ++-
> >  1 files changed, 2 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 dc96c06..b4ae719 100644
> > --- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> > +++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
> > @@ -753,7 +753,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);
> 
> It'd be kinda nice if that could be made dependent on firmware
> capability bits or version since otherwise everybody will think they
> have it ... and it will not work?

Well, the current firmware has no version mechanism and this series requires
the new FW for non-AP modes too. I am aware that breaking compatibilty with existing FW
is frowned upon, but unfortunately this is required since the command layout has
been cleaned up. I'll add a check to bail out at driver load time when the old FW is used.

Sujith

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

end of thread, other threads:[~2011-01-21 10:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-21  3:02 [RFC/WIP 23/33] ath9k_htc: Enable AP mode Sujith
2011-01-21  8:43 ` Johannes Berg
2011-01-21 10:00   ` Sujith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox