Commit 53d7938e authored by Bing Zhao's avatar Bing Zhao Committed by John W. Linville

mwifiex: rename function mwifiex_is_ba_stream_avail

The old function name sounds like checking for existing BA
stream. The function actually checks if we have room for
creating new BA stream or not.
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 572e8f3e
...@@ -92,9 +92,10 @@ mwifiex_is_amsdu_allowed(struct mwifiex_private *priv, int tid) ...@@ -92,9 +92,10 @@ mwifiex_is_amsdu_allowed(struct mwifiex_private *priv, int tid)
} }
/* /*
* This function checks whether a BA stream is available or not. * This function checks whether a space is available for new BA stream or not.
*/ */
static inline u8 mwifiex_is_ba_stream_avail(struct mwifiex_adapter *adapter) static inline u8 mwifiex_space_avail_for_new_ba_stream(
struct mwifiex_adapter *adapter)
{ {
struct mwifiex_private *priv; struct mwifiex_private *priv;
u8 i; u8 i;
......
...@@ -1186,7 +1186,7 @@ mwifiex_dequeue_tx_packet(struct mwifiex_adapter *adapter) ...@@ -1186,7 +1186,7 @@ mwifiex_dequeue_tx_packet(struct mwifiex_adapter *adapter)
mwifiex_send_single_packet() */ mwifiex_send_single_packet() */
} else { } else {
if (mwifiex_is_ampdu_allowed(priv, tid)) { if (mwifiex_is_ampdu_allowed(priv, tid)) {
if (mwifiex_is_ba_stream_avail(adapter)) { if (mwifiex_space_avail_for_new_ba_stream(adapter)) {
mwifiex_11n_create_tx_ba_stream_tbl(priv, mwifiex_11n_create_tx_ba_stream_tbl(priv,
ptr->ra, tid, ptr->ra, tid,
BA_STREAM_SETUP_INPROGRESS); BA_STREAM_SETUP_INPROGRESS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment