mirror of https://gitee.com/openkylin/linux.git
iwlwifi: rs always set lq_sta->priv
This patch fixes printk NULL pointer exceptions in rs code. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Guy Cohen <guy.cohen@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
65fdbb48eb
commit
6c5379077f
|
@ -2265,9 +2265,7 @@ static void rs_rate_init(void *priv_rate, void *priv_sta,
|
|||
|
||||
/* as default allow aggregation for all tids */
|
||||
lq_sta->tx_agg_tid_en = IWL_AGG_ALL_TID;
|
||||
#ifdef CONFIG_MAC80211_DEBUGFS
|
||||
lq_sta->drv = priv;
|
||||
#endif
|
||||
|
||||
rs_initialize_lq(priv, conf, sta);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue