Skip to contentSkip to conversation

wl1251: enable adhoc mode

PATCH In review David Gnedt 2 participants 3 messages Jan 30, 2011 – Feb 1, 2011 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 9/18 wl1251: enable adhoc mode

Enable adhoc support in wl1251 driver.

---
 drivers/net/wireless/wl1251/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/wl1251/main.c +2 -0
index 387878f..4a6d529 100644
@@ -1428,7 +1428,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;
 -- 1.7.0.4
#1 lore raw

PATCH 9/18 wl1251: enable adhoc mode

Enable adhoc support in wl1251 driver.

---
Sorry for the partly broken patches, I thought I configured my client the right way. I tried to stop the mails at my mailserver, but it was mostly already too late.

---
 drivers/net/wireless/wl1251/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/wl1251/main.c +2 -1
index 387878f..4a6d529 100644
@@ -1428,7 +1428,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;
 
Signature · 1 line
1.7.0.4