Skip to content

Commit

Permalink
wl1251: enable adhoc mode
Browse files Browse the repository at this point in the history
Enable adhoc support in wl1251 driver.

Signed-off-by: David Gnedt <david.gnedt@davizone.at>
Acked-by: Kalle Valo <kvalo@adurom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
David Gnedt authored and John W. Linville committed Feb 3, 2011
1 parent 8964e49 commit 43d1364
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/wl1251/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,8 @@ int wl1251_init_ieee80211(struct wl1251 *wl)
IEEE80211_HW_SUPPORTS_UAPSD |
IEEE80211_HW_SUPPORTS_CQM_RSSI;

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;

Expand Down

0 comments on commit 43d1364

Please sign in to comment.