summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/cfg80211.c
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>2012-11-16 18:22:57 +0530
committerKalle Valo <kvalo@qca.qualcomm.com>2012-11-27 21:44:28 +0200
commit8aa659d2c9ad2df8873c5ba1d7f030d6acf39c4c (patch)
tree10b97e42babedb0e30fce40d865b95e565dd7655 /drivers/net/wireless/ath/ath6kl/cfg80211.c
parentde2070fc4aa7c0205348010f500f5abce012e67b (diff)
downloadlinux-stable-8aa659d2c9ad2df8873c5ba1d7f030d6acf39c4c.tar.gz
linux-stable-8aa659d2c9ad2df8873c5ba1d7f030d6acf39c4c.tar.bz2
linux-stable-8aa659d2c9ad2df8873c5ba1d7f030d6acf39c4c.zip
ath6kl: trivial cleanup on interface type selection
a minor cleanup in assigning the driver specific network type based on interface type. Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/cfg80211.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/cfg80211.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index 459d7004b620..cea885617d61 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -1557,17 +1557,13 @@ static int ath6kl_cfg80211_change_iface(struct wiphy *wiphy,
set_iface_type:
switch (type) {
case NL80211_IFTYPE_STATION:
+ case NL80211_IFTYPE_P2P_CLIENT:
vif->next_mode = INFRA_NETWORK;
break;
case NL80211_IFTYPE_ADHOC:
vif->next_mode = ADHOC_NETWORK;
break;
case NL80211_IFTYPE_AP:
- vif->next_mode = AP_NETWORK;
- break;
- case NL80211_IFTYPE_P2P_CLIENT:
- vif->next_mode = INFRA_NETWORK;
- break;
case NL80211_IFTYPE_P2P_GO:
vif->next_mode = AP_NETWORK;
break;