iwlwifi: mvm: check TLV flag before trying to use hotspot firmware commands
authorLuciano Coelho <luciano.coelho@intel.com>
Tue, 21 Oct 2014 13:12:18 +0000 (16:12 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 23 Nov 2014 19:50:57 +0000 (21:50 +0200)
commit5ac6c72e594471acfa5b00210c51d533a73413ad
treea84f476ee1d15917f186e267e67374b024fd8fc4
parent87dd634ae72bb8f6d0dd12f1cbbc67c7da6dba3b
iwlwifi: mvm: check TLV flag before trying to use hotspot firmware commands

Older firmwares do not provide support for the HOT_SPOT_CMD command.
Check for the appropriate TLV flag that declares hotspot support in
the firmware to prevent a firmware assertion failure that can be
triggered from the userspace,

Cc: stable@vger.kernel.org [3.17+]
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-fw.h
drivers/net/wireless/iwlwifi/mvm/mac80211.c