aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>2012-11-16 07:52:57 -0500
committerKalle Valo <kvalo@qca.qualcomm.com>2012-11-27 14:44:28 -0500
commit8aa659d2c9ad2df8873c5ba1d7f030d6acf39c4c (patch)
tree10b97e42babedb0e30fce40d865b95e565dd7655 /drivers
parentde2070fc4aa7c0205348010f500f5abce012e67b (diff)
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')
-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,
1557set_iface_type: 1557set_iface_type:
1558 switch (type) { 1558 switch (type) {
1559 case NL80211_IFTYPE_STATION: 1559 case NL80211_IFTYPE_STATION:
1560 case NL80211_IFTYPE_P2P_CLIENT:
1560 vif->next_mode = INFRA_NETWORK; 1561 vif->next_mode = INFRA_NETWORK;
1561 break; 1562 break;
1562 case NL80211_IFTYPE_ADHOC: 1563 case NL80211_IFTYPE_ADHOC:
1563 vif->next_mode = ADHOC_NETWORK; 1564 vif->next_mode = ADHOC_NETWORK;
1564 break; 1565 break;
1565 case NL80211_IFTYPE_AP: 1566 case NL80211_IFTYPE_AP:
1566 vif->next_mode = AP_NETWORK;
1567 break;
1568 case NL80211_IFTYPE_P2P_CLIENT:
1569 vif->next_mode = INFRA_NETWORK;
1570 break;
1571 case NL80211_IFTYPE_P2P_GO: 1567 case NL80211_IFTYPE_P2P_GO:
1572 vif->next_mode = AP_NETWORK; 1568 vif->next_mode = AP_NETWORK;
1573 break; 1569 break;