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)
commit0ec84d1d1e6db6e0b4c1eb9bd9cdd2da64451da6
treea5656e182d8481e83ea71fbf7e16016c39f19817
parentdd02fbeb8fedecd8b2d55fdfde664eaa05afac6f
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