mirror of
				https://github.com/berlin-open-wireless-lab/DAWN.git
				synced 2025-03-09 15:40:12 +00:00 
			
		
		
		
	dawn_iwinfo: release iwinfo after usage
This commit is contained in:
		
							parent
							
								
									6bad02bed7
								
							
						
					
					
						commit
						b78a01bfb5
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -224,9 +224,11 @@ int get_expected_throughput(const char *ifname, uint8_t *client_addr) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (iw->assoclist(ifname, buf, &len)) {
 | 
					    if (iw->assoclist(ifname, buf, &len)) {
 | 
				
			||||||
        fprintf(stdout, "No information available\n");
 | 
					        fprintf(stdout, "No information available\n");
 | 
				
			||||||
 | 
					        iwinfo_finish();
 | 
				
			||||||
        return INT_MIN;
 | 
					        return INT_MIN;
 | 
				
			||||||
    } else if (len <= 0) {
 | 
					    } else if (len <= 0) {
 | 
				
			||||||
        fprintf(stdout, "No station connected\n");
 | 
					        fprintf(stdout, "No station connected\n");
 | 
				
			||||||
 | 
					        iwinfo_finish();
 | 
				
			||||||
        return INT_MIN;
 | 
					        return INT_MIN;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -353,4 +355,4 @@ int support_vht(const char *ifname) {
 | 
				
			||||||
    int ret = htmodes & vht_support_bitmask ? 1 : 0;
 | 
					    int ret = htmodes & vht_support_bitmask ? 1 : 0;
 | 
				
			||||||
    iwinfo_finish();
 | 
					    iwinfo_finish();
 | 
				
			||||||
    return ret;
 | 
					    return ret;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue