osmo-bsc: Use NM_OPSTATE_* to check for operational attributes
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_rf.c b/openbsc/src/osmo-bsc/osmo_bsc_rf.c
index 6288fbf..64cab5d 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_rf.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_rf.c
@@ -97,7 +97,7 @@
 		struct gsm_bts_trx *trx;
 		llist_for_each_entry(trx, &bts->trx_list, list) {
 			if (trx->mo.nm_state.availability == NM_AVSTATE_OK &&
-			    trx->mo.nm_state.operational != NM_STATE_LOCKED) {
+			    trx->mo.nm_state.operational != NM_OPSTATE_DISABLED) {
 					send = RF_CMD_ON;
 					break;
 			}