* [bug report] rtlwifi: Add rx ampdu cfg for btcoexist.
@ 2017-06-30 7:52 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2017-06-30 7:52 UTC (permalink / raw)
To: pkshih; +Cc: linux-wireless
Hello Ping-Ke Shih,
The patch 2635664e6e4a: "rtlwifi: Add rx ampdu cfg for btcoexist."
from Jun 18, 2017, leads to the following static checker warning:
drivers/net/wireless/realtek/rtlwifi/base.c:1664 rtl_rx_ampdu_apply()
error: uninitialized symbol 'reject_agg'.
drivers/net/wireless/realtek/rtlwifi/base.c
1655 void rtl_rx_ampdu_apply(struct rtl_priv *rtlpriv)
1656 {
1657 struct rtl_btc_ops *btc_ops = rtlpriv->btcoexist.btc_ops;
1658 u8 reject_agg, ctrl_agg_size = 0, agg_size;
1659
1660 if (rtlpriv->cfg->ops->get_btc_status())
1661 btc_ops->btc_get_ampdu_cfg(rtlpriv, &reject_agg,
1662 &ctrl_agg_size, &agg_size);
1663
1664 RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_DMESG,
1665 "Set RX AMPDU: coex - reject=%d, ctrl_agg_size=%d, size=%d",
1666 reject_agg, ctrl_agg_size, agg_size);
^^^^^^^^^^ ^^^^^^^^
potentially uninitialized.
1667
1668 rtlpriv->hw->max_rx_aggregation_subframes =
1669 (ctrl_agg_size ? agg_size : IEEE80211_MAX_AMPDU_BUF);
1670 }
1671 EXPORT_SYMBOL(rtl_rx_ampdu_apply);
regards,
dan carpenter
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-30 7:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-30 7:52 [bug report] rtlwifi: Add rx ampdu cfg for btcoexist Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).