From: Emmanuel Grumbach Date: Tue, 20 Sep 2016 10:40:33 +0000 (+0300) Subject: iwlwifi: mvm: initialise ADD_STA before sending it to the firmware X-Git-Tag: v4.9-rc1~127^2~35^2~7^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9cd70e80f7f0df1d6d13d8aeb50a16bf40e2962c;p=platform%2Fkernel%2Flinux-exynos.git iwlwifi: mvm: initialise ADD_STA before sending it to the firmware When we unshare a queue, the ADD_STA was not properly initialised. Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c index 258a234..fc77188 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c @@ -933,7 +933,7 @@ static void iwl_mvm_unshare_queue(struct iwl_mvm *mvm, int queue) /* If aggs should be turned back on - do it */ if (mvmsta->tid_data[tid].state == IWL_AGG_ON) { - struct iwl_mvm_add_sta_cmd cmd; + struct iwl_mvm_add_sta_cmd cmd = {0}; mvmsta->tid_disable_agg &= ~BIT(tid);