mirror of
				https://github.com/brmlab/osmo-tetra.git
				synced 2025-10-31 07:24: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)", | 	cur += sprintf(cur, "%s (TN%u/%s/%uHz)", | ||||||
| 		tetra_get_alloc_t_name(cad->type), cad->timeslot, | 		tetra_get_alloc_t_name(cad->type), cad->timeslot, | ||||||
| 		tetra_get_ul_dl_name(cad->ul_dl), | 		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, | 		tetra_dl_carrier_hz(cad->ext_carr.freq_band, cad->carrier_nr, | ||||||
| 				    cad->ext_carr.freq_offset)); | 				    cad->ext_carr.freq_offset)); | ||||||
| 
 | 
 | ||||||
|  | @ -120,6 +121,10 @@ static void rx_resrc(struct tetra_tmvsap_prim *tmvp) | ||||||
| 	if (rsd.chan_alloc_pres) | 	if (rsd.chan_alloc_pres) | ||||||
| 		printf("ChanAlloc=%s ", tetra_alloc_dump(&rsd.cad)); | 		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) { | 	if (rsd.length_ind && rsd.encryption_mode == 0) { | ||||||
| 		int len_bits = rsd.length_ind*8; | 		int len_bits = rsd.length_ind*8; | ||||||
| 		if (tup->mac_block + tmpdu_offset + len_bits > | 		if (tup->mac_block + tmpdu_offset + len_bits > | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Harald Welte
						Harald Welte