aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>2012-08-24 10:23:28 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2012-10-24 04:49:48 -0400
commit3814264481fecba02ba60f2e6c6baea2d43b757b (patch)
tree2f1e5f07afd9efa23436363883fd4346b2a37eed /drivers/net/wireless/ath/ath6kl
parent2c07cf4461c958e52efd9cfca1df67165426ba20 (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/net/wireless/ath/ath6kl')
-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 a7c8ff084c4..b58878648d2 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -365,17 +365,13 @@ static int ath6kl_nliftype_to_drv_iftype(enum nl80211_iftype type, u8 *nw_type)
365{ 365{
366 switch (type) { 366 switch (type) {
367 case NL80211_IFTYPE_STATION: 367 case NL80211_IFTYPE_STATION:
368 case NL80211_IFTYPE_P2P_CLIENT:
368 *nw_type = INFRA_NETWORK; 369 *nw_type = INFRA_NETWORK;
369 break; 370 break;
370 case NL80211_IFTYPE_ADHOC: 371 case NL80211_IFTYPE_ADHOC:
371 *nw_type = ADHOC_NETWORK; 372 *nw_type = ADHOC_NETWORK;
372 break; 373 break;
373 case NL80211_IFTYPE_AP: 374 case NL80211_IFTYPE_AP:
374 *nw_type = AP_NETWORK;
375 break;
376 case NL80211_IFTYPE_P2P_CLIENT:
377 *nw_type = INFRA_NETWORK;
378 break;
379 case NL80211_IFTYPE_P2P_GO: 375 case NL80211_IFTYPE_P2P_GO:
380 *nw_type = AP_NETWORK; 376 *nw_type = AP_NETWORK;
381 break; 377 break;