pull-request: iwlwifi 2016-08-29
Hi Kalle,
Here are 4 patches intended for 4.8. They are all very small and low risk, but fix some actual issues. More details in the tag description.
Let me know if everything's fine (or not). :)
Luca.
The following changes since commit bb87f02b7e4ccdb614a83cbf840524de81e9b321:
Merge ath-current from ath.git (2016-08-29 21:39:04 +0300)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git tags/iwlwifi-for-kalle-2016-08-29
for you to fetch changes up to a904a08b5fee5317ff0f7b8212aa5d0776795a52:
iwlwifi: mvm: Advertise support for AP channel width change (2016-08-29 22:29:06 +0300)
----------------------------------------------------------------
* Fix P2P dump trigger
* Prevent a potential null dereference in iwlmvm
* Prevent an uninitialized value from being returned in iwlmvm
* Advertise support for channel width change in AP mode
----------------------------------------------------------------
Emmanuel Grumbach (2):
iwlwifi: mvm: consider P2p device type for firmware dump triggers
iwlwifi: mvm: don't use ret when not initialised
Peer, Ilan (1):
iwlwifi: mvm: Advertise support for AP channel width change
Sharon Dvir (1):
iwlwifi: mvm: check if vif is NULL before using it
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c | 3 ++- drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.h | 3 ++- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 1 + drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 2 ++
4 files changed, 7 insertions(+), 2 deletions(-)
PATCH 1/4 iwlwifi: mvm: consider P2p device type for firmware dump triggers
From: Emmanuel Grumbach <[email protected]>
When the user really wanted a dump on P2P Client, he coudln't get it because we checked vif->type but didn't take vif->p2p into account. Fix that.
--- drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.h +2 -1
@@ -105,7 +105,8 @@ iwl_fw_dbg_trigger_vif_match(struct iwl_fw_dbg_trigger_tlv *trig, {u32 trig_vif =le32_to_cpu (trig->vif_type); -return trig_vif ==IWL_FW_DBG_CONF_VIF_ANY || vif->type == trig_vif; +return trig_vif ==IWL_FW_DBG_CONF_VIF_ANY || +ieee80211_vif_type_p2p (vif) == trig_vif; } static inline bool
Signature · 1 line
2.8.1
PATCH 2/4 iwlwifi: mvm: check if vif is NULL before using it
From: Sharon Dvir <[email protected]>
wdev_to_ieee80211_vif() might return NULL.
Check that vif != NULL before dereferencing it.
--- drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h +2 -0
@@ -467,6 +467,8 @@ struct iwl_mvm_vif {static inline struct iwl_mvm_vif *iwl_mvm_vif_from_mac80211 (struct ieee80211_vif *vif) { +if (!vif) +return NULL ;return (void *)vif->drv_priv; }
Signature · 1 line
2.8.1
PATCH 3/4 iwlwifi: mvm: don't use ret when not initialised
In reply to Luca CoelhoFrom: Emmanuel Grumbach <[email protected]>
fw-dbg code return ret but that variable was either 0 or not initialised. Return 0 always.
--- drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c +2 -1
@@ -960,5 +960,6 @@ int iwl_mvm_start_fw_dbg_conf(struct iwl_mvm *mvm, u8 conf_id) } mvm->fw_dbg_conf = conf_id; -return ret; + +return 0 ; }
Signature · 1 line
2.8.1
PATCH 4/4 iwlwifi: mvm: Advertise support for AP channel width change
In reply to Luca CoelhoFrom: "Peer, Ilan" <[email protected]>
The iwlmvm driver supports channel width change in AP mode. Add the proper flag.
--- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +1 -0
@@ -624,6 +624,7 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm) hw->wiphy->features |=NL80211_FEATURE_P2P_GO_CTWIN |NL80211_FEATURE_LOW_PRIORITY_SCAN |NL80211_FEATURE_P2P_GO_OPPPS | +NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE |NL80211_FEATURE_DYNAMIC_SMPS |NL80211_FEATURE_STATIC_SMPS |NL80211_FEATURE_SUPPORTS_WMM_ADMISSION ;
Signature · 1 line
2.8.1
Quoted 8 lines · Luca Coelho
Here are 4 patches intended for 4.8. They are all very small and low risk, but fix some actual issues. More details in the tag description.
Let me know if everything's fine (or not). :)
Luca.
Quoted 7 lines
The following changes since commit
bb87f02b7e4ccdb614a83cbf840524de81e9b321:Merge ath-current from ath.git (2016-08-29 21:39:04 +0300)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.gittags/iwlwifi-for-kalle-2016-08-29
Pulled, thanks.
Signature · 1 line
Kalle Valo