nl80211: Move peer link state definition to nl80211

These definitions need to be exposed now that we can set the peer link
states via NL80211_ATTR_STA_PLINK_STATE.  They were already being
(opaquely) reported by NL80211_STA_INFO_PLINK_STATE.

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Javier Cardona
2011-05-13 10:45:43 -07:00
committed by John W. Linville
parent 108697c44b
commit 57cf8043a6
8 changed files with 83 additions and 75 deletions

View File

@@ -730,9 +730,9 @@ static void sta_apply_parameters(struct ieee80211_local *local,
#ifdef CONFIG_MAC80211_MESH
if (sdata->u.mesh.security & IEEE80211_MESH_SEC_SECURED)
switch (params->plink_state) {
case PLINK_LISTEN:
case PLINK_ESTAB:
case PLINK_BLOCKED:
case NL80211_PLINK_LISTEN:
case NL80211_PLINK_ESTAB:
case NL80211_PLINK_BLOCKED:
sta->plink_state = params->plink_state;
break;
default: