Skip to contentSkip to conversation

rt2x00: Need to set wiphy->interface_modes

PATCH In review Ivo van Doorn 3 participants 3 messages Aug 29, 2008 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt2x00: Need to set wiphy->interface_modes

Hi Johannes,

Below patch was created by Stephen Blackheath.

Could you merge this patch with your patch: 008-cfg80211-interface-types.patch This is the required rt2x00 change for registering the supported interface types.

Thanks,

Ivo
---

---
 drivers/net/wireless/rt2x00/rt2x00dev.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/net/wireless/rt2x00/rt2x00dev.c +5 -0
index 5278ae2..b363fad 100644
@@ -1052,6 +1052,11 @@ int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev)
 	 */
 	rt2x00dev->hw->vif_data_size = sizeof(struct rt2x00_intf);
 
+	rt2x00dev->hw->wiphy->interface_modes =
+	    BIT(NL80211_IFTYPE_AP) |
+	    BIT(NL80211_IFTYPE_STATION) |
+	    BIT(NL80211_IFTYPE_ADHOC);
+
 	/*
 	 * Let the driver probe the device to detect the capabilities.
 	 */
Signature · 1 line
1.5.6.1
maintainer
#1 lore raw
Quoted 6 lines · Ivo van Doorn

Hi Johannes,

Below patch was created by Stephen Blackheath.

Could you merge this patch with your patch: 008-cfg80211-interface-types.patch This is the required rt2x00 change for registering the supported interface types.

Thanks, I'd hoped somebody else would pick it up, but if not I'll do it in a week.

johannes

#2 lore raw
Quoted 10 lines · Johannes Berg
Quoted 6 lines · Ivo van Doorn

Hi Johannes,

Below patch was created by Stephen Blackheath.

Could you merge this patch with your patch: 008-cfg80211-interface-types.patch This is the required rt2x00 change for registering the supported interface types.

Thanks, I'd hoped somebody else would pick it up, but if not I'll do it in a week.

I picked it up, and sent it all together as *one* patch.

Luis