iwlwifi: mvm: combine ssid_bitmap setting for regular scans
authorLuciano Coelho <luciano.coelho@intel.com>
Thu, 2 Apr 2015 12:37:05 +0000 (15:37 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 29 Apr 2015 10:18:09 +0000 (13:18 +0300)
commit5ef766fe785ddcda29057f64b30f19e9bdfabe12
tree54fd57cee6a9be6c76a7c08a1ce02be4519ffc77
parentf7b788b429337e0c07df960f3bc70b0e5cb73b87
iwlwifi: mvm: combine ssid_bitmap setting for regular scans

The only difference in the ssid_bitmap between LMAC and UMAC scans is
that in LMAC bits 1 to 20 are used, while in UMAC bits 0 to 19 are
used (*sigh*).  So we can combine the bitmap creation into a single
function and simply shift left if LMAC is used.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c