abis_nm: Consider a STATE CHG without avail_status as an empty avail_status
At least some nanoBTS 139 send the last even (going online) as 'enabled' 'unlocked' but no avail status IE (which I guess mean an empty set, the doc 12.21 isn't that clear about that). Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
b1a83585a2
commit
65542c7f59
|
@ -813,7 +813,8 @@ static int abis_nm_rx_statechg_rep(struct msgb *mb)
|
|||
new_state.availability = *TLVP_VAL(&tp, NM_ATT_AVAIL_STATUS);
|
||||
DEBUGPC(DNM, "AVAIL=%s(%02x) ", nm_avail_name(new_state.availability),
|
||||
new_state.availability);
|
||||
}
|
||||
} else
|
||||
new_state.availability = 0xff;
|
||||
if (TLVP_PRESENT(&tp, NM_ATT_ADM_STATE)) {
|
||||
new_state.administrative = *TLVP_VAL(&tp, NM_ATT_ADM_STATE);
|
||||
DEBUGPC(DNM, "ADM=%2s ", nm_adm_name(new_state.administrative));
|
||||
|
|
Loading…
Reference in New Issue