Skip to contentSkip to conversation

ath6kl: trivial cleanup on interface type selection

PATCH In review Mohammed Shafi Shajakhan 1 participant 1 message Nov 16, 2012 Atheros ATH6KL wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 5/8 ath6kl: trivial cleanup on interface type selection

From: Mohammed Shafi Shajakhan <[email protected]>

a minor cleanup in assigning the driver specific network type based on interface type.

---
 drivers/net/wireless/ath/ath6kl/cfg80211.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
drivers/net/wireless/ath/ath6kl/cfg80211.c +1 -5
index d6e6c2d..b8d99c2 100644
@@ -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;
Signature · 1 line
1.7.0.4