mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-03 21:43:32 +00:00 
			
		
		
		
	LAPD: Make sure we don't re-start SABM timer for INACTIVE SAPs
This commit is contained in:
		@@ -601,6 +601,7 @@ static void sabme_timer_cb(void *_sap)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	lapd_send_sabm(sap->tei->li, sap->tei->tei, sap->sapi);
 | 
						lapd_send_sabm(sap->tei->li, sap->tei->tei, sap->sapi);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (sap->state == SAP_STATE_SABM_RETRANS)
 | 
				
			||||||
		bsc_schedule_timer(&sap->sabme_timer, SABM_INTERVAL);
 | 
							bsc_schedule_timer(&sap->sabme_timer, SABM_INTERVAL);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -639,7 +640,7 @@ int lapd_sap_stop(struct lapd_instance *li, uint8_t tei, uint8_t sapi)
 | 
				
			|||||||
	if (!sap)
 | 
						if (!sap)
 | 
				
			||||||
		return -ENODEV;
 | 
							return -ENODEV;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	bsc_del_timer(&sap->sabme_timer);
 | 
						lapd_sap_set_state(teip, sapi, SAP_STATE_INACTIVE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	llist_del(&sap->list);
 | 
						llist_del(&sap->list);
 | 
				
			||||||
	talloc_free(sap);
 | 
						talloc_free(sap);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user