if_iwm - Factor out and improve iwm_mvm_scan_rxon_flags() in if_iwm_scan.c.
commit53a009d6f66108b40d622ed90ea95eba5c0e5432
authorImre Vadász <imre@vdsz.com>
Mon, 31 Oct 2016 23:34:28 +0000 (1 00:34 +0100)
committerImre Vadász <imre@vdsz.com>
Tue, 1 Nov 2016 00:26:02 +0000 (1 01:26 +0100)
treefbf6d4d060a2a94fc9cffa2db420c2c2975c104e
parentf95003b8f1f7382c8396a6d408e3072632afdd3d
if_iwm - Factor out and improve iwm_mvm_scan_rxon_flags() in if_iwm_scan.c.

* Actually look at the first channel in the list. If it's a 2.4GHz channel,
  set IWM_PHY_BAND_24 flag. The IWM_PHY_BAND_5 flag is 0 anyway, so we
  don't need to look further.

* While there factor out the iwm_mvm_rrm_scan_needed() tlv capability check.

Taken-From: Linux iwlwifi
sys/dev/netif/iwm/if_iwm_scan.c