mirror of
				https://github.com/brmlab/osmo-tetra.git
				synced 2025-10-30 15:04:01 +01:00 
			
		
		
		
	upper mac: print slot grant (if any)
This commit is contained in:
		
							parent
							
								
									8c2db3d630
								
							
						
					
					
						commit
						c547e9f0de
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -76,6 +76,7 @@ const char *tetra_alloc_dump(const struct tetra_chan_alloc_decoded *cad) | |||
| 	cur += sprintf(cur, "%s (TN%u/%s/%uHz)", | ||||
| 		tetra_get_alloc_t_name(cad->type), cad->timeslot, | ||||
| 		tetra_get_ul_dl_name(cad->ul_dl), | ||||
| 		/* FIXME: what if ext_carr_pres == 0? */ | ||||
| 		tetra_dl_carrier_hz(cad->ext_carr.freq_band, cad->carrier_nr, | ||||
| 				    cad->ext_carr.freq_offset)); | ||||
| 
 | ||||
|  | @ -120,6 +121,10 @@ static void rx_resrc(struct tetra_tmvsap_prim *tmvp) | |||
| 	if (rsd.chan_alloc_pres) | ||||
| 		printf("ChanAlloc=%s ", tetra_alloc_dump(&rsd.cad)); | ||||
| 
 | ||||
| 	if (rsd.slot_granting.pres) | ||||
| 		printf("SlotGrant=%u/%u\n", rsd.slot_granting.nr_slots, | ||||
| 			rsd.slot_granting.delay); | ||||
| 
 | ||||
| 	if (rsd.length_ind && rsd.encryption_mode == 0) { | ||||
| 		int len_bits = rsd.length_ind*8; | ||||
| 		if (tup->mac_block + tmpdu_offset + len_bits > | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Harald Welte
						Harald Welte