wl1251: enable adhoc mode
[pandora-wifi.git] / drivers / net / wireless / wl12xx / wl1251_main.c
index 093bda2..86672df 100644 (file)
@@ -1300,7 +1300,8 @@ int wl1251_init_ieee80211(struct wl1251 *wl)
                IEEE80211_HW_BEACON_FILTER |
                IEEE80211_HW_SUPPORTS_UAPSD;
 
-       wl->hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
+       wl->hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
+                                        BIT(NL80211_IFTYPE_ADHOC);
        wl->hw->wiphy->max_scan_ssids = 1;
        wl->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &wl1251_band_2ghz;