mesh: Rename MPM FSM states to match the standard

During the P802.11s draft development, there were separate LISTEN and
IDLE states. However, the current IEEE 802.11 standards uses only the
IDLE state while the implementation called this LISTEN. Rename the state
in the implementation to match the one used in the standard to avoid
confusion. In addition, rename OPEN_{SENT,RCVD} to OPN_{SNT,RCVD} to
match the exact spelling of these states in the standard.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2016-06-28 22:53:05 +03:00
parent 1f2f3f1c4a
commit d02e549831
3 changed files with 23 additions and 23 deletions

View file

@ -3839,11 +3839,11 @@ static u32 sta_flags_nl80211(int flags)
static u32 sta_plink_state_nl80211(enum mesh_plink_state state)
{
switch (state) {
case PLINK_LISTEN:
case PLINK_IDLE:
return NL80211_PLINK_LISTEN;
case PLINK_OPEN_SENT:
case PLINK_OPN_SNT:
return NL80211_PLINK_OPN_SNT;
case PLINK_OPEN_RCVD:
case PLINK_OPN_RCVD:
return NL80211_PLINK_OPN_RCVD;
case PLINK_CNF_RCVD:
return NL80211_PLINK_CNF_RCVD;