Add Station and AdHoc mode support to libertas_tf
PATCH 1/1 Add Station and AdHoc mode support to libertas_tf
Add support for using the libertas_tf driver on a managed or ad-hoc network.
---
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).
drivers/net/wireless/libertas_tf/main.c +3 -0
@@ -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);
Quoted 2 lines · Deepak Saxena
Add support for using the
libertas_tfdriver 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
Quoted 26 lines
Signed-off-by Deepak Saxena <[email protected]>---
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).drivers/net/wireless/libertas_tf/main.c +3
-1@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html