mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-30 20:37:26 +01:00 
			
		
		
		
	client: report channel if present in diag message
This commit is contained in:
		
							parent
							
								
									793228028d
								
							
						
					
					
						commit
						9f31663e21
					
				| @ -93,6 +93,7 @@ static const struct diagnostic_dict_mapping diagnostic_mapping[] = { | ||||
| 	{ "RxMCS", 'y' }, | ||||
| 	{ "TxMCS", 'y' }, | ||||
| 	{ "Frequency", 'u' }, | ||||
| 	{ "Channel", 'q' }, | ||||
| 	{ "Security", 's' }, | ||||
| 	{ NULL } | ||||
| }; | ||||
| @ -109,6 +110,7 @@ void diagnostic_display(struct l_dbus_message_iter *dict, | ||||
| 	while (l_dbus_message_iter_next_entry(dict, &key, &variant)) { | ||||
| 		const char *s_value; | ||||
| 		uint32_t u_value; | ||||
| 		uint16_t q_value; | ||||
| 		int16_t n_value; | ||||
| 		uint8_t y_value; | ||||
| 		int bytes; | ||||
| @ -145,6 +147,14 @@ void diagnostic_display(struct l_dbus_message_iter *dict, | ||||
| 			bytes = sprintf(display_text, "%u", u_value); | ||||
| 			break; | ||||
| 
 | ||||
| 		case 'q': | ||||
| 			if (!l_dbus_message_iter_get_variant(&variant, "q", | ||||
| 							&q_value)) | ||||
| 				goto parse_error; | ||||
| 
 | ||||
| 			bytes = sprintf(display_text, "%u", q_value); | ||||
| 			break; | ||||
| 
 | ||||
| 		case 'n': | ||||
| 			if (!l_dbus_message_iter_get_variant(&variant, "n", | ||||
| 							&n_value)) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ram Subramanian
						Ram Subramanian