aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-09-05 10:38:46 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-09-06 03:44:03 -0400
commit6e4604c8b91743c5a797fc2674544618854ed0f2 (patch)
treea8944e744f43ec3974da7a8b366881abad88cb22
parent572e27c00c9d1250ae2b4951eae7e73992174138 (diff)
ath6kl: Allow AP mode to be configured
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath6kl/cfg80211.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index 1fe55f6f5d17..640569688219 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -1221,6 +1221,9 @@ static int ath6kl_cfg80211_change_iface(struct wiphy *wiphy,
1221 case NL80211_IFTYPE_ADHOC: 1221 case NL80211_IFTYPE_ADHOC:
1222 ar->next_mode = ADHOC_NETWORK; 1222 ar->next_mode = ADHOC_NETWORK;
1223 break; 1223 break;
1224 case NL80211_IFTYPE_AP:
1225 ar->next_mode = AP_NETWORK;
1226 break;
1224 case NL80211_IFTYPE_P2P_CLIENT: 1227 case NL80211_IFTYPE_P2P_CLIENT:
1225 ar->next_mode = INFRA_NETWORK; 1228 ar->next_mode = INFRA_NETWORK;
1226 break; 1229 break;
@@ -1956,7 +1959,7 @@ struct wireless_dev *ath6kl_cfg80211_init(struct device *dev)
1956 set_wiphy_dev(wdev->wiphy, dev); 1959 set_wiphy_dev(wdev->wiphy, dev);
1957 1960
1958 wdev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | 1961 wdev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
1959 BIT(NL80211_IFTYPE_ADHOC); 1962 BIT(NL80211_IFTYPE_ADHOC) | BIT(NL80211_IFTYPE_AP);
1960 /* max num of ssids that can be probed during scanning */ 1963 /* max num of ssids that can be probed during scanning */
1961 wdev->wiphy->max_scan_ssids = MAX_PROBED_SSID_INDEX; 1964 wdev->wiphy->max_scan_ssids = MAX_PROBED_SSID_INDEX;
1962 wdev->wiphy->max_scan_ie_len = 1000; /* FIX: what is correct limit? */ 1965 wdev->wiphy->max_scan_ie_len = 1000; /* FIX: what is correct limit? */