Add Station and AdHoc mode support to libertas_tf
authorDeepak Saxena <dsaxena@plexity.net>
Tue, 9 Feb 2010 21:35:43 +0000 (13:35 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Feb 2010 21:36:50 +0000 (16:36 -0500)
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>
drivers/net/wireless/libertas_tf/main.c

index ba3eb0101d558b7247b36adc00449f414a2d9159..6ab30033c26c07fff18b1c54a0fc5d1bd19cca82 100644 (file)
@@ -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);