linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add Station and AdHoc mode support to libertas_tf
@ 2010-02-09 21:35 Deepak Saxena
  2010-02-10 18:46 ` Dan Williams
  0 siblings, 1 reply; 2+ messages in thread
From: Deepak Saxena @ 2010-02-09 21:35 UTC (permalink / raw)
  To: linux-wireless, libertas-dev


Add support for using the libertas_tf driver on a managed 
or ad-hoc network.

Signed-off-by: Deepak Saxena <dsaxena@laptop.org>

---
Ran basic network tests on an OLPC XO-1 laptop. Suspend/resume causes a 
crash but w/o this patch, the driver does not present a configureable 
interface.  (wmaster0 appears but is listed as having no "wireless 
extensions". Fixing this is on my queue).

diff --git a/drivers/net/wireless/libertas_tf/main.c b/drivers/net/wireless/libertas_tf/main.c
index 26a1abd..9123d86 100644
--- a/drivers/net/wireless/libertas_tf/main.c
+++ b/drivers/net/wireless/libertas_tf/main.c
@@ -555,6 +555,9 @@ struct lbtf_private *lbtf_add_card(void *card, struct device *dmdev)
 	priv->band.n_channels = ARRAY_SIZE(lbtf_channels);
 	priv->band.channels = priv->channels;
 	hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band;
+        hw->wiphy->interface_modes =
+                BIT(NL80211_IFTYPE_STATION) |
+                BIT(NL80211_IFTYPE_ADHOC);
 	skb_queue_head_init(&priv->bc_ps_buf);
 
 	SET_IEEE80211_DEV(hw, dmdev);

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

* Re: [PATCH] Add Station and AdHoc mode support to libertas_tf
  2010-02-09 21:35 [PATCH] Add Station and AdHoc mode support to libertas_tf Deepak Saxena
@ 2010-02-10 18:46 ` Dan Williams
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2010-02-10 18:46 UTC (permalink / raw)
  To: dsaxena; +Cc: linux-wireless, libertas-dev

On Tue, 2010-02-09 at 13:35 -0800, Deepak Saxena wrote:
> Add support for using the libertas_tf driver on a managed 
> or ad-hoc network.

Most of the libertas-tf stuff should probably get sent to
linux-wireless@ since there's a ton more people on that list that know
about mac80211/cfg80211 specifics there, which I'm honestly not as good
with.

Dan

> Signed-off-by: Deepak Saxena <dsaxena@laptop.org>
> 
> ---
> Ran basic network tests on an OLPC XO-1 laptop. Suspend/resume causes a 
> crash but w/o this patch, the driver does not present a configureable 
> interface.  (wmaster0 appears but is listed as having no "wireless 
> extensions". Fixing this is on my queue).
> 
> diff --git a/drivers/net/wireless/libertas_tf/main.c b/drivers/net/wireless/libertas_tf/main.c
> index 26a1abd..9123d86 100644
> --- a/drivers/net/wireless/libertas_tf/main.c
> +++ b/drivers/net/wireless/libertas_tf/main.c
> @@ -555,6 +555,9 @@ struct lbtf_private *lbtf_add_card(void *card, struct device *dmdev)
>  	priv->band.n_channels = ARRAY_SIZE(lbtf_channels);
>  	priv->band.channels = priv->channels;
>  	hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band;
> +        hw->wiphy->interface_modes =
> +                BIT(NL80211_IFTYPE_STATION) |
> +                BIT(NL80211_IFTYPE_ADHOC);
>  	skb_queue_head_init(&priv->bc_ps_buf);
>  
>  	SET_IEEE80211_DEV(hw, dmdev);
> --
> 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] 2+ messages in thread

end of thread, other threads:[~2010-02-10 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 21:35 [PATCH] Add Station and AdHoc mode support to libertas_tf Deepak Saxena
2010-02-10 18:46 ` Dan Williams

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).