--- zzzz-none-000/linux-2.6.39.4/drivers/net/wireless/hostap/hostap_ioctl.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/drivers/net/wireless/hostap/hostap_ioctl.c 2021-11-10 13:38:15.000000000 +0000 @@ -1952,7 +1952,7 @@ char *buffer, int buflen) { struct hfa384x_hostscan_result *scan; - int entry, hostscan; + int entry; char *current_ev = buffer; char *end_buf = buffer + buflen; struct list_head *ptr; @@ -1965,7 +1965,6 @@ bss->included = 0; } - hostscan = local->last_scan_type == PRISM2_HOSTSCAN; for (entry = 0; entry < local->last_scan_results_count; entry++) { int found = 0; scan = &local->last_scan_results[entry];