aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/cfg80211.h8
-rw-r--r--net/mac80211/cfg.c4
-rw-r--r--net/wireless/nl80211.c8
3 files changed, 10 insertions, 10 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 69b2b2631b9a..bdba9b619064 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -690,8 +690,8 @@ struct station_parameters {
690 * supported/used) 690 * supported/used)
691 * @CFG80211_STA_TDLS_PEER_ACTIVE: TDLS peer on managed interface (active 691 * @CFG80211_STA_TDLS_PEER_ACTIVE: TDLS peer on managed interface (active
692 * entry that is operating, has been marked authorized by userspace) 692 * entry that is operating, has been marked authorized by userspace)
693 * @CFG80211_STA_MESH_PEER_NONSEC: peer on mesh interface (non-secured) 693 * @CFG80211_STA_MESH_PEER_KERNEL: peer on mesh interface (kernel managed)
694 * @CFG80211_STA_MESH_PEER_SECURE: peer on mesh interface (secured) 694 * @CFG80211_STA_MESH_PEER_USER: peer on mesh interface (user managed)
695 */ 695 */
696enum cfg80211_station_type { 696enum cfg80211_station_type {
697 CFG80211_STA_AP_CLIENT, 697 CFG80211_STA_AP_CLIENT,
@@ -700,8 +700,8 @@ enum cfg80211_station_type {
700 CFG80211_STA_IBSS, 700 CFG80211_STA_IBSS,
701 CFG80211_STA_TDLS_PEER_SETUP, 701 CFG80211_STA_TDLS_PEER_SETUP,
702 CFG80211_STA_TDLS_PEER_ACTIVE, 702 CFG80211_STA_TDLS_PEER_ACTIVE,
703 CFG80211_STA_MESH_PEER_NONSEC, 703 CFG80211_STA_MESH_PEER_KERNEL,
704 CFG80211_STA_MESH_PEER_SECURE, 704 CFG80211_STA_MESH_PEER_USER,
705}; 705};
706 706
707/** 707/**
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 9d708f9e246e..6ac89e5c2963 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1436,9 +1436,9 @@ static int ieee80211_change_station(struct wiphy *wiphy,
1436 switch (sdata->vif.type) { 1436 switch (sdata->vif.type) {
1437 case NL80211_IFTYPE_MESH_POINT: 1437 case NL80211_IFTYPE_MESH_POINT:
1438 if (sdata->u.mesh.security & IEEE80211_MESH_SEC_SECURED) 1438 if (sdata->u.mesh.security & IEEE80211_MESH_SEC_SECURED)
1439 statype = CFG80211_STA_MESH_PEER_SECURE; 1439 statype = CFG80211_STA_MESH_PEER_USER;
1440 else 1440 else
1441 statype = CFG80211_STA_MESH_PEER_NONSEC; 1441 statype = CFG80211_STA_MESH_PEER_KERNEL;
1442 break; 1442 break;
1443 case NL80211_IFTYPE_ADHOC: 1443 case NL80211_IFTYPE_ADHOC:
1444 statype = CFG80211_STA_IBSS; 1444 statype = CFG80211_STA_IBSS;
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index bdf39836d9d8..946b2e7acdf2 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -3617,8 +3617,8 @@ int cfg80211_check_station_change(struct wiphy *wiphy,
3617 BUILD_BUG_ON(NL80211_STA_FLAG_MAX != 7); 3617 BUILD_BUG_ON(NL80211_STA_FLAG_MAX != 7);
3618 3618
3619 switch (statype) { 3619 switch (statype) {
3620 case CFG80211_STA_MESH_PEER_NONSEC: 3620 case CFG80211_STA_MESH_PEER_KERNEL:
3621 case CFG80211_STA_MESH_PEER_SECURE: 3621 case CFG80211_STA_MESH_PEER_USER:
3622 /* 3622 /*
3623 * No ignoring the TDLS flag here -- the userspace mesh 3623 * No ignoring the TDLS flag here -- the userspace mesh
3624 * code doesn't have the bug of including TDLS in the 3624 * code doesn't have the bug of including TDLS in the
@@ -3720,11 +3720,11 @@ int cfg80211_check_station_change(struct wiphy *wiphy,
3720 case CFG80211_STA_TDLS_PEER_ACTIVE: 3720 case CFG80211_STA_TDLS_PEER_ACTIVE:
3721 /* reject any changes */ 3721 /* reject any changes */
3722 return -EINVAL; 3722 return -EINVAL;
3723 case CFG80211_STA_MESH_PEER_NONSEC: 3723 case CFG80211_STA_MESH_PEER_KERNEL:
3724 if (params->sta_modify_mask & STATION_PARAM_APPLY_PLINK_STATE) 3724 if (params->sta_modify_mask & STATION_PARAM_APPLY_PLINK_STATE)
3725 return -EINVAL; 3725 return -EINVAL;
3726 break; 3726 break;
3727 case CFG80211_STA_MESH_PEER_SECURE: 3727 case CFG80211_STA_MESH_PEER_USER:
3728 if (params->plink_action != NL80211_PLINK_ACTION_NO_ACTION) 3728 if (params->plink_action != NL80211_PLINK_ACTION_NO_ACTION)
3729 return -EINVAL; 3729 return -EINVAL;
3730 break; 3730 break;