Skip to contentSkip to conversation

ath6kl: trivial cleanup

RFC Applied Mohammed Shafi Shajakhan 2 participants 3 messages Aug 24, 2012 – Aug 27, 2012 Atheros ATH6KL wireless driver

lore
Share & tools
lore
#0 lore raw

RFC 1/1 ath6kl: trivial cleanup

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 86aeef4..a971d54 100644
@@ -369,17 +369,13 @@ static int ath6kl_nliftype_to_drv_iftype(enum nl80211_iftype type, u8 *nw_type)
 {
 	switch (type) {
 	case NL80211_IFTYPE_STATION:
+	case NL80211_IFTYPE_P2P_CLIENT:
 		*nw_type = INFRA_NETWORK;
 		break;
 	case NL80211_IFTYPE_ADHOC:
 		*nw_type = ADHOC_NETWORK;
 		break;
 	case NL80211_IFTYPE_AP:
-		*nw_type = AP_NETWORK;
-		break;
-	case NL80211_IFTYPE_P2P_CLIENT:
-		*nw_type = INFRA_NETWORK;
-		break;
 	case NL80211_IFTYPE_P2P_GO:
 		*nw_type = AP_NETWORK;
 		break;
Signature · 1 line
1.7.0.4
#2 lore raw

Hi Kalle,

Quoted 11 lines · Kalle Valo
Quoted 6 lines · Mohammed Shafi Shajakhan

From: Mohammed Shafi Shajakhan <[email protected]>

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

Thanks, applied to ath6kl.git. But I changed the title to:

ath6kl: trivial cleanup on interface type selection

thanks for the review!

Quoted 3 lines

Kalle

Signature · 2 lines
thanks,
shafi