]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: make phy_db size dynamic
authorSara Sharon <sara.sharon@intel.com>
Sun, 10 Apr 2016 09:27:25 +0000 (12:27 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 10 May 2016 19:34:03 +0000 (22:34 +0300)
commit9b7c5ab65cf963a1b1a4fca4078a3d949288da97
treea5656e182d8481e83ea71fbf7e16016c39f19817
parent7c60e7ad9ad6aba53a88291e0d40fd0544995dfb
iwlwifi: mvm: make phy_db size dynamic

Driver is agnostic to the number of the phy_db entries and
only serves the firmware as a pipe to move the data from init
image to RT image.
As the size of the arrays may change (as it does in 9000 device)
allocate it dynamically. Firmware sends the largest index first
so we can use this to know how much we should allocate.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-phy-db.c