diff options
author | Deepak Saxena <dsaxena@plexity.net> | 2010-02-09 16:35:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-10 16:36:50 -0500 |
commit | f32338319f10c4ca5499c19edc5b3618896920ba (patch) | |
tree | d7ea2cd9257153c1ff8df5b298f60a232916c73d /drivers/net/wireless/libertas_tf | |
parent | 2ac2927a953a01c83df255118922cce1523d1a18 (diff) |
Add Station and AdHoc mode support to libertas_tf
Add support for using the libertas_tf driver on a managed
or ad-hoc network.
Signed-off-by: Deepak Saxena <dsaxena@laptop.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas_tf')
-rw-r--r-- | drivers/net/wireless/libertas_tf/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas_tf/main.c b/drivers/net/wireless/libertas_tf/main.c index ba3eb0101d55..6ab30033c26c 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) | |||
555 | priv->band.n_channels = ARRAY_SIZE(lbtf_channels); | 555 | priv->band.n_channels = ARRAY_SIZE(lbtf_channels); |
556 | priv->band.channels = priv->channels; | 556 | priv->band.channels = priv->channels; |
557 | hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; | 557 | hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; |
558 | hw->wiphy->interface_modes = | ||
559 | BIT(NL80211_IFTYPE_STATION) | | ||
560 | BIT(NL80211_IFTYPE_ADHOC); | ||
558 | skb_queue_head_init(&priv->bc_ps_buf); | 561 | skb_queue_head_init(&priv->bc_ps_buf); |
559 | 562 | ||
560 | SET_IEEE80211_DEV(hw, dmdev); | 563 | SET_IEEE80211_DEV(hw, dmdev); |