iwlwifi: scan: Create function to build scan cmd
authorTova Mussai <tova.mussai@intel.com>
Fri, 15 Nov 2019 07:27:45 +0000 (09:27 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 15 Nov 2019 07:32:29 +0000 (09:32 +0200)
commit51698293e3230796e38cd92c49e69650cacf66e5
tree894a8e149cc31bed4c1f00a49b7f5fd08c92cd3a
parent508127b7629e1b5d01a44743e2ea1a9370b643ec
iwlwifi: scan: Create function to build scan cmd

Currently, the code to build scan cmd is duplicated in
iwl_mvm_reg_scan_start and iwl_mvm_sched_scan_start.

Create a function to build this command, and call the function instead.

Signed-off-by: Tova Mussai <tova.mussai@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c