summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/cfg80211.c
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan2012-08-24 16:23:28 +0200
committerKalle Valo2012-10-24 10:49:48 +0200
commit3814264481fecba02ba60f2e6c6baea2d43b757b (patch)
tree2f1e5f07afd9efa23436363883fd4346b2a37eed /drivers/net/wireless/ath/ath6kl/cfg80211.c
parentath6kl: consolidate WoW pattern length (diff)
downloadkernel-qcow2-linux-3814264481fecba02ba60f2e6c6baea2d43b757b.tar.gz
kernel-qcow2-linux-3814264481fecba02ba60f2e6c6baea2d43b757b.tar.xz
kernel-qcow2-linux-3814264481fecba02ba60f2e6c6baea2d43b757b.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 a7c8ff084c46..b58878648d22 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)
{
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;