mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 01:52:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			707 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			707 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From: Felix Fietkau <nbd@nbd.name>
 | |
| Date: Thu, 14 Sep 2023 10:53:50 +0200
 | |
| Subject: [PATCH] driver_nl80211: fix setting QoS map on secondary BSSs
 | |
| 
 | |
| The setting is per-BSS, not per PHY
 | |
| 
 | |
| Signed-off-by: Felix Fietkau <nbd@nbd.name>
 | |
| ---
 | |
| 
 | |
| --- a/src/drivers/driver_nl80211.c
 | |
| +++ b/src/drivers/driver_nl80211.c
 | |
| @@ -10045,7 +10045,7 @@ static int nl80211_set_qos_map(void *pri
 | |
|  	wpa_hexdump(MSG_DEBUG, "nl80211: Setting QoS Map",
 | |
|  		    qos_map_set, qos_map_set_len);
 | |
|  
 | |
| -	if (!(msg = nl80211_drv_msg(drv, 0, NL80211_CMD_SET_QOS_MAP)) ||
 | |
| +	if (!(msg = nl80211_bss_msg(bss, 0, NL80211_CMD_SET_QOS_MAP)) ||
 | |
|  	    nla_put(msg, NL80211_ATTR_QOS_MAP, qos_map_set_len, qos_map_set)) {
 | |
|  		nlmsg_free(msg);
 | |
|  		return -ENOBUFS;
 | 
