mwifiex: rename function mwifiex_is_ba_stream_avail
authorBing Zhao <bzhao@marvell.com>
Thu, 14 Apr 2011 00:27:09 +0000 (17:27 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 14 Apr 2011 19:35:13 +0000 (15:35 -0400)
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: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/11n.h
drivers/net/wireless/mwifiex/wmm.c

index 9128d2c9638b222add6b99d6bdca6841a3e7b7ac..02602ff30cbf2ac6a7d474d5967d4e04edac94cc 100644 (file)
@@ -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;
        u8 i;
index 57b98c59235d836d692f39258cc9179154a37af6..99e8431c1e9353d7f0f800f6459a1dc37589802a 100644 (file)
@@ -1186,7 +1186,7 @@ mwifiex_dequeue_tx_packet(struct mwifiex_adapter *adapter)
                   mwifiex_send_single_packet() */
        } else {
                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,
                                                ptr->ra, tid,
                                                BA_STREAM_SETUP_INPROGRESS);