mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-10-31 20:13:58 +00:00 
			
		
		
		
	abis_rsl: use msgb_pull to parse tlli from msg
Change-Id: I971bf6c8821689f9d8a1294a9b3bf1af9c4091f7
This commit is contained in:
		
				
					committed by
					
						 Harald Welte
						Harald Welte
					
				
			
			
				
	
			
			
			
						parent
						
							2faeb1ac6c
						
					
				
				
					commit
					271ceca862
				
			| @@ -2023,10 +2023,8 @@ static int abis_rsl_rx_cchan(struct msgb *msg) | |||||||
| 		else if(msg->data[4] != 0xf1) | 		else if(msg->data[4] != 0xf1) | ||||||
| 			LOGP(DRSL, LOGL_ERROR, "unsupported IMM.ass message format! (please fix)\n"); | 			LOGP(DRSL, LOGL_ERROR, "unsupported IMM.ass message format! (please fix)\n"); | ||||||
| 		else { | 		else { | ||||||
| 			tlli =  msg->data[8]; | 			msgb_pull(msg, 5); /* drop previous data to use msg_pull_u32 */ | ||||||
| 			tlli |= msg->data[7] << 8; | 			tlli = msgb_pull_u32(msg); | ||||||
| 			tlli |= msg->data[6] << 16; |  | ||||||
| 			tlli |= msg->data[5] << 24; |  | ||||||
| 			pcu_tx_imm_ass_sent(sign_link->trx->bts, tlli); | 			pcu_tx_imm_ass_sent(sign_link->trx->bts, tlli); | ||||||
| 		} | 		} | ||||||
| 		break; | 		break; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user