wil6210: make sure Rx ring sizes are correlated
When enlarging rx_ring_order module param, wil6210 fails to load because there are not enough Rx buffers. Fix this by enlarging number of Rx buffers at startup, if needed based on rx_ring_order. Signed-off-by: Dedy Lansky <dlansky@codeaurora.org> Signed-off-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -1689,7 +1689,7 @@ int __wil_up(struct wil6210_priv *wil)
|
||||
WIL_RX_RING_SIZE_ORDER_DEFAULT :
|
||||
WIL_RX_RING_SIZE_ORDER_TALYN_DEFAULT;
|
||||
|
||||
rc = wil->txrx_ops.rx_init(wil, 1 << rx_ring_order);
|
||||
rc = wil->txrx_ops.rx_init(wil, rx_ring_order);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
|
Reference in New Issue
Block a user