diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-01-31 13:50:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-04 16:29:51 -0500 |
commit | ab419e9bda10efced0db980478c3e40a1ad18ba3 (patch) | |
tree | 014af0b50d2a06dce27c3dc526e10cc617caa350 /drivers/net/wireless/zd1211rw/zd_mac.c | |
parent | 1f6cccccea3fe96464f7dbc39723d70165f1eef1 (diff) |
zd1211rw: enable NL80211_IFTYPE_AP
It should be safe to enable AP-mode now.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_mac.c')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_mac.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index beaa969f7426..74a269ebbeb9 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
@@ -1038,6 +1038,7 @@ static int zd_op_add_interface(struct ieee80211_hw *hw, | |||
1038 | case NL80211_IFTYPE_MESH_POINT: | 1038 | case NL80211_IFTYPE_MESH_POINT: |
1039 | case NL80211_IFTYPE_STATION: | 1039 | case NL80211_IFTYPE_STATION: |
1040 | case NL80211_IFTYPE_ADHOC: | 1040 | case NL80211_IFTYPE_ADHOC: |
1041 | case NL80211_IFTYPE_AP: | ||
1041 | mac->type = vif->type; | 1042 | mac->type = vif->type; |
1042 | break; | 1043 | break; |
1043 | default: | 1044 | default: |
@@ -1214,7 +1215,8 @@ static void zd_op_bss_info_changed(struct ieee80211_hw *hw, | |||
1214 | dev_dbg_f(zd_mac_dev(mac), "changes: %x\n", changes); | 1215 | dev_dbg_f(zd_mac_dev(mac), "changes: %x\n", changes); |
1215 | 1216 | ||
1216 | if (mac->type == NL80211_IFTYPE_MESH_POINT || | 1217 | if (mac->type == NL80211_IFTYPE_MESH_POINT || |
1217 | mac->type == NL80211_IFTYPE_ADHOC) { | 1218 | mac->type == NL80211_IFTYPE_ADHOC || |
1219 | mac->type == NL80211_IFTYPE_AP) { | ||
1218 | associated = true; | 1220 | associated = true; |
1219 | if (changes & BSS_CHANGED_BEACON) { | 1221 | if (changes & BSS_CHANGED_BEACON) { |
1220 | struct sk_buff *beacon = ieee80211_beacon_get(hw, vif); | 1222 | struct sk_buff *beacon = ieee80211_beacon_get(hw, vif); |
@@ -1317,7 +1319,8 @@ struct ieee80211_hw *zd_mac_alloc_hw(struct usb_interface *intf) | |||
1317 | hw->wiphy->interface_modes = | 1319 | hw->wiphy->interface_modes = |
1318 | BIT(NL80211_IFTYPE_MESH_POINT) | | 1320 | BIT(NL80211_IFTYPE_MESH_POINT) | |
1319 | BIT(NL80211_IFTYPE_STATION) | | 1321 | BIT(NL80211_IFTYPE_STATION) | |
1320 | BIT(NL80211_IFTYPE_ADHOC); | 1322 | BIT(NL80211_IFTYPE_ADHOC) | |
1323 | BIT(NL80211_IFTYPE_AP); | ||
1321 | 1324 | ||
1322 | hw->max_signal = 100; | 1325 | hw->max_signal = 100; |
1323 | hw->queues = 1; | 1326 | hw->queues = 1; |