Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Marvell Wireless LAN device driver: 802.11n Aggregation |
| 3 | * |
| 4 | * Copyright (C) 2011, Marvell International Ltd. |
| 5 | * |
| 6 | * This software file (the "File") is distributed by Marvell International |
| 7 | * Ltd. under the terms of the GNU General Public License Version 2, June 1991 |
| 8 | * (the "License"). You may use, redistribute and/or modify this File in |
| 9 | * accordance with the terms and conditions of the License, a copy of which |
| 10 | * is available by writing to the Free Software Foundation, Inc., |
| 11 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the |
| 12 | * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. |
| 13 | * |
| 14 | * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE |
| 15 | * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE |
| 16 | * ARE EXPRESSLY DISCLAIMED. The License provides additional details about |
| 17 | * this warranty disclaimer. |
| 18 | */ |
| 19 | |
| 20 | #include "decl.h" |
| 21 | #include "ioctl.h" |
| 22 | #include "util.h" |
| 23 | #include "fw.h" |
| 24 | #include "main.h" |
| 25 | #include "wmm.h" |
| 26 | #include "11n.h" |
| 27 | #include "11n_aggr.h" |
| 28 | |
| 29 | /* |
| 30 | * Creates an AMSDU subframe for aggregation into one AMSDU packet. |
| 31 | * |
| 32 | * The resultant AMSDU subframe format is - |
| 33 | * |
| 34 | * +---- ~ -----+---- ~ ------+---- ~ -----+----- ~ -----+---- ~ -----+ |
| 35 | * | DA | SA | Length | SNAP header | MSDU | |
| 36 | * | data[0..5] | data[6..11] | | | data[14..] | |
| 37 | * +---- ~ -----+---- ~ ------+---- ~ -----+----- ~ -----+---- ~ -----+ |
| 38 | * <--6-bytes--> <--6-bytes--> <--2-bytes--><--8-bytes--> <--n-bytes--> |
| 39 | * |
| 40 | * This function also computes the amount of padding required to make the |
| 41 | * buffer length multiple of 4 bytes. |
| 42 | * |
| 43 | * Data => |DA|SA|SNAP-TYPE|........ .| |
| 44 | * MSDU => |DA|SA|Length|SNAP|...... ..| |
| 45 | */ |
| 46 | static int |
Amitkumar Karwar | 572e8f3 | 2011-04-13 17:27:08 -0700 | [diff] [blame] | 47 | mwifiex_11n_form_amsdu_pkt(struct sk_buff *skb_aggr, |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 48 | struct sk_buff *skb_src, int *pad) |
| 49 | |
| 50 | { |
| 51 | int dt_offset; |
| 52 | struct rfc_1042_hdr snap = { |
| 53 | 0xaa, /* LLC DSAP */ |
| 54 | 0xaa, /* LLC SSAP */ |
| 55 | 0x03, /* LLC CTRL */ |
| 56 | {0x00, 0x00, 0x00}, /* SNAP OUI */ |
| 57 | 0x0000 /* SNAP type */ |
| 58 | /* |
| 59 | * This field will be overwritten |
| 60 | * later with ethertype |
| 61 | */ |
| 62 | }; |
Yogesh Ashok Powar | 270e58e | 2011-05-03 20:11:46 -0700 | [diff] [blame] | 63 | struct tx_packet_hdr *tx_header; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 64 | |
Yogesh Ashok Powar | d92a680 | 2012-08-03 18:05:59 -0700 | [diff] [blame] | 65 | tx_header = (void *)skb_put(skb_aggr, sizeof(*tx_header)); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 66 | |
| 67 | /* Copy DA and SA */ |
| 68 | dt_offset = 2 * ETH_ALEN; |
| 69 | memcpy(&tx_header->eth803_hdr, skb_src->data, dt_offset); |
| 70 | |
| 71 | /* Copy SNAP header */ |
Amitkumar Karwar | a6efc5b | 2013-12-02 23:17:49 -0800 | [diff] [blame] | 72 | snap.snap_type = ((struct ethhdr *)skb_src->data)->h_proto; |
| 73 | |
| 74 | dt_offset += sizeof(__be16); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 75 | |
| 76 | memcpy(&tx_header->rfc1042_hdr, &snap, sizeof(struct rfc_1042_hdr)); |
| 77 | |
| 78 | skb_pull(skb_src, dt_offset); |
| 79 | |
| 80 | /* Update Length field */ |
| 81 | tx_header->eth803_hdr.h_proto = htons(skb_src->len + LLC_SNAP_LEN); |
| 82 | |
| 83 | /* Add payload */ |
Yogesh Ashok Powar | d92a680 | 2012-08-03 18:05:59 -0700 | [diff] [blame] | 84 | memcpy(skb_put(skb_aggr, skb_src->len), skb_src->data, skb_src->len); |
| 85 | |
Yogesh Ashok Powar | bda1b1b | 2012-08-03 18:06:01 -0700 | [diff] [blame] | 86 | /* Add padding for new MSDU to start from 4 byte boundary */ |
| 87 | *pad = (4 - ((unsigned long)skb_aggr->tail & 0x3)) % 4; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 88 | |
| 89 | return skb_aggr->len + *pad; |
| 90 | } |
| 91 | |
| 92 | /* |
| 93 | * Adds TxPD to AMSDU header. |
| 94 | * |
| 95 | * Each AMSDU packet will contain one TxPD at the beginning, |
| 96 | * followed by multiple AMSDU subframes. |
| 97 | */ |
| 98 | static void |
| 99 | mwifiex_11n_form_amsdu_txpd(struct mwifiex_private *priv, |
| 100 | struct sk_buff *skb) |
| 101 | { |
| 102 | struct txpd *local_tx_pd; |
Avinash Patil | 71e17ee | 2014-05-21 22:02:30 -0700 | [diff] [blame] | 103 | struct mwifiex_txinfo *tx_info = MWIFIEX_SKB_TXCB(skb); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 104 | |
| 105 | skb_push(skb, sizeof(*local_tx_pd)); |
| 106 | |
| 107 | local_tx_pd = (struct txpd *) skb->data; |
| 108 | memset(local_tx_pd, 0, sizeof(struct txpd)); |
| 109 | |
| 110 | /* Original priority has been overwritten */ |
| 111 | local_tx_pd->priority = (u8) skb->priority; |
| 112 | local_tx_pd->pkt_delay_2ms = |
| 113 | mwifiex_wmm_compute_drv_pkt_delay(priv, skb); |
| 114 | local_tx_pd->bss_num = priv->bss_num; |
| 115 | local_tx_pd->bss_type = priv->bss_type; |
| 116 | /* Always zero as the data is followed by struct txpd */ |
| 117 | local_tx_pd->tx_pkt_offset = cpu_to_le16(sizeof(struct txpd)); |
| 118 | local_tx_pd->tx_pkt_type = cpu_to_le16(PKT_TYPE_AMSDU); |
| 119 | local_tx_pd->tx_pkt_length = cpu_to_le16(skb->len - |
Yogesh Ashok Powar | 8426684 | 2012-03-13 19:22:34 -0700 | [diff] [blame] | 120 | sizeof(*local_tx_pd)); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 121 | |
Avinash Patil | 71e17ee | 2014-05-21 22:02:30 -0700 | [diff] [blame] | 122 | if (tx_info->flags & MWIFIEX_BUF_FLAG_TDLS_PKT) |
| 123 | local_tx_pd->flags |= MWIFIEX_TXPD_FLAGS_TDLS_PACKET; |
| 124 | |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 125 | if (local_tx_pd->tx_control == 0) |
| 126 | /* TxCtrl set by user or default */ |
| 127 | local_tx_pd->tx_control = cpu_to_le32(priv->pkt_tx_ctrl); |
| 128 | |
Yogesh Ashok Powar | 8426684 | 2012-03-13 19:22:34 -0700 | [diff] [blame] | 129 | if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_STA && |
| 130 | priv->adapter->pps_uapsd_mode) { |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 131 | if (true == mwifiex_check_last_packet_indication(priv)) { |
| 132 | priv->adapter->tx_lock_flag = true; |
| 133 | local_tx_pd->flags = |
| 134 | MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET; |
| 135 | } |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | /* |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 140 | * Create aggregated packet. |
| 141 | * |
| 142 | * This function creates an aggregated MSDU packet, by combining buffers |
| 143 | * from the RA list. Each individual buffer is encapsulated as an AMSDU |
| 144 | * subframe and all such subframes are concatenated together to form the |
| 145 | * AMSDU packet. |
| 146 | * |
| 147 | * A TxPD is also added to the front of the resultant AMSDU packets for |
| 148 | * transmission. The resultant packets format is - |
| 149 | * |
| 150 | * +---- ~ ----+------ ~ ------+------ ~ ------+-..-+------ ~ ------+ |
| 151 | * | TxPD |AMSDU sub-frame|AMSDU sub-frame| .. |AMSDU sub-frame| |
| 152 | * | | 1 | 2 | .. | n | |
| 153 | * +---- ~ ----+------ ~ ------+------ ~ ------+ .. +------ ~ ------+ |
| 154 | */ |
| 155 | int |
| 156 | mwifiex_11n_aggregate_pkt(struct mwifiex_private *priv, |
Amitkumar Karwar | bd1c614 | 2013-09-24 19:31:24 -0700 | [diff] [blame] | 157 | struct mwifiex_ra_list_tbl *pra_list, |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 158 | int ptrindex, unsigned long ra_list_flags) |
| 159 | __releases(&priv->wmm.ra_list_spinlock) |
| 160 | { |
| 161 | struct mwifiex_adapter *adapter = priv->adapter; |
| 162 | struct sk_buff *skb_aggr, *skb_src; |
| 163 | struct mwifiex_txinfo *tx_info_aggr, *tx_info_src; |
Yogesh Ashok Powar | 270e58e | 2011-05-03 20:11:46 -0700 | [diff] [blame] | 164 | int pad = 0, ret; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 165 | struct mwifiex_tx_param tx_param; |
| 166 | struct txpd *ptx_pd = NULL; |
Avinash Patil | 5af3fae | 2014-04-14 15:32:53 -0700 | [diff] [blame] | 167 | struct timeval tv; |
Amitkumar Karwar | bd1c614 | 2013-09-24 19:31:24 -0700 | [diff] [blame] | 168 | int headroom = adapter->iface_type == MWIFIEX_USB ? 0 : INTF_HEADER_LEN; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 169 | |
Yogesh Ashok Powar | a8fe329 | 2011-06-06 14:50:58 +0530 | [diff] [blame] | 170 | skb_src = skb_peek(&pra_list->skb_head); |
| 171 | if (!skb_src) { |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 172 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, |
| 173 | ra_list_flags); |
| 174 | return 0; |
| 175 | } |
Yogesh Ashok Powar | a8fe329 | 2011-06-06 14:50:58 +0530 | [diff] [blame] | 176 | |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 177 | tx_info_src = MWIFIEX_SKB_TXCB(skb_src); |
| 178 | skb_aggr = dev_alloc_skb(adapter->tx_buf_size); |
| 179 | if (!skb_aggr) { |
| 180 | dev_err(adapter->dev, "%s: alloc skb_aggr\n", __func__); |
| 181 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, |
| 182 | ra_list_flags); |
| 183 | return -1; |
| 184 | } |
| 185 | skb_reserve(skb_aggr, headroom + sizeof(struct txpd)); |
| 186 | tx_info_aggr = MWIFIEX_SKB_TXCB(skb_aggr); |
| 187 | |
Amitkumar Karwar | 701a9e6 | 2014-07-01 14:39:04 -0700 | [diff] [blame] | 188 | memset(tx_info_aggr, 0, sizeof(*tx_info_aggr)); |
Yogesh Ashok Powar | 9da9a3b | 2012-01-11 20:06:11 -0800 | [diff] [blame] | 189 | tx_info_aggr->bss_type = tx_info_src->bss_type; |
| 190 | tx_info_aggr->bss_num = tx_info_src->bss_num; |
Avinash Patil | 71e17ee | 2014-05-21 22:02:30 -0700 | [diff] [blame] | 191 | |
| 192 | if (tx_info_src->flags & MWIFIEX_BUF_FLAG_TDLS_PKT) |
| 193 | tx_info_aggr->flags |= MWIFIEX_BUF_FLAG_TDLS_PKT; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 194 | skb_aggr->priority = skb_src->priority; |
| 195 | |
Avinash Patil | 5af3fae | 2014-04-14 15:32:53 -0700 | [diff] [blame] | 196 | do_gettimeofday(&tv); |
| 197 | skb_aggr->tstamp = timeval_to_ktime(tv); |
| 198 | |
Yogesh Ashok Powar | fb3c19b | 2011-06-06 14:53:02 +0530 | [diff] [blame] | 199 | do { |
| 200 | /* Check if AMSDU can accommodate this MSDU */ |
| 201 | if (skb_tailroom(skb_aggr) < (skb_src->len + LLC_SNAP_LEN)) |
| 202 | break; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 203 | |
Yogesh Ashok Powar | a8fe329 | 2011-06-06 14:50:58 +0530 | [diff] [blame] | 204 | skb_src = skb_dequeue(&pra_list->skb_head); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 205 | |
Avinash Patil | c7d9ed9 | 2013-07-22 19:17:40 -0700 | [diff] [blame] | 206 | pra_list->total_pkt_count--; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 207 | |
Marc Yang | f699254 | 2011-05-16 19:17:49 -0700 | [diff] [blame] | 208 | atomic_dec(&priv->wmm.tx_pkts_queued); |
| 209 | |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 210 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, |
| 211 | ra_list_flags); |
Amitkumar Karwar | 572e8f3 | 2011-04-13 17:27:08 -0700 | [diff] [blame] | 212 | mwifiex_11n_form_amsdu_pkt(skb_aggr, skb_src, &pad); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 213 | |
Avinash Patil | 47411a0 | 2012-11-01 18:44:16 -0700 | [diff] [blame] | 214 | mwifiex_write_data_complete(adapter, skb_src, 0, 0); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 215 | |
| 216 | spin_lock_irqsave(&priv->wmm.ra_list_spinlock, ra_list_flags); |
| 217 | |
| 218 | if (!mwifiex_is_ralist_valid(priv, pra_list, ptrindex)) { |
| 219 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, |
| 220 | ra_list_flags); |
| 221 | return -1; |
| 222 | } |
| 223 | |
Yogesh Ashok Powar | fb3c19b | 2011-06-06 14:53:02 +0530 | [diff] [blame] | 224 | if (skb_tailroom(skb_aggr) < pad) { |
| 225 | pad = 0; |
| 226 | break; |
| 227 | } |
| 228 | skb_put(skb_aggr, pad); |
| 229 | |
Yogesh Ashok Powar | a8fe329 | 2011-06-06 14:50:58 +0530 | [diff] [blame] | 230 | skb_src = skb_peek(&pra_list->skb_head); |
Yogesh Ashok Powar | fb3c19b | 2011-06-06 14:53:02 +0530 | [diff] [blame] | 231 | |
| 232 | } while (skb_src); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 233 | |
| 234 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, ra_list_flags); |
| 235 | |
| 236 | /* Last AMSDU packet does not need padding */ |
| 237 | skb_trim(skb_aggr, skb_aggr->len - pad); |
| 238 | |
| 239 | /* Form AMSDU */ |
| 240 | mwifiex_11n_form_amsdu_txpd(priv, skb_aggr); |
| 241 | if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_STA) |
| 242 | ptx_pd = (struct txpd *)skb_aggr->data; |
| 243 | |
| 244 | skb_push(skb_aggr, headroom); |
| 245 | |
Amitkumar Karwar | 4daffe3 | 2012-04-18 20:08:28 -0700 | [diff] [blame] | 246 | if (adapter->iface_type == MWIFIEX_USB) { |
| 247 | adapter->data_sent = true; |
| 248 | ret = adapter->if_ops.host_to_card(adapter, MWIFIEX_USB_EP_DATA, |
| 249 | skb_aggr, NULL); |
| 250 | } else { |
Amitkumar Karwar | b2a13a2 | 2014-04-14 15:32:51 -0700 | [diff] [blame] | 251 | if (skb_src) |
| 252 | tx_param.next_pkt_len = |
| 253 | skb_src->len + sizeof(struct txpd); |
| 254 | else |
| 255 | tx_param.next_pkt_len = 0; |
Yogesh Ashok Powar | 36cb7cc | 2011-06-06 14:54:17 +0530 | [diff] [blame] | 256 | |
Amitkumar Karwar | 4daffe3 | 2012-04-18 20:08:28 -0700 | [diff] [blame] | 257 | ret = adapter->if_ops.host_to_card(adapter, MWIFIEX_TYPE_DATA, |
| 258 | skb_aggr, &tx_param); |
| 259 | } |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 260 | switch (ret) { |
| 261 | case -EBUSY: |
| 262 | spin_lock_irqsave(&priv->wmm.ra_list_spinlock, ra_list_flags); |
| 263 | if (!mwifiex_is_ralist_valid(priv, pra_list, ptrindex)) { |
| 264 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, |
| 265 | ra_list_flags); |
Avinash Patil | 47411a0 | 2012-11-01 18:44:16 -0700 | [diff] [blame] | 266 | mwifiex_write_data_complete(adapter, skb_aggr, 1, -1); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 267 | return -1; |
| 268 | } |
Yogesh Ashok Powar | 8426684 | 2012-03-13 19:22:34 -0700 | [diff] [blame] | 269 | if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_STA && |
| 270 | adapter->pps_uapsd_mode && adapter->tx_lock_flag) { |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 271 | priv->adapter->tx_lock_flag = false; |
Christoph Fritz | b53575e | 2011-05-08 22:50:09 +0200 | [diff] [blame] | 272 | if (ptx_pd) |
| 273 | ptx_pd->flags = 0; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 274 | } |
| 275 | |
| 276 | skb_queue_tail(&pra_list->skb_head, skb_aggr); |
| 277 | |
Avinash Patil | c7d9ed9 | 2013-07-22 19:17:40 -0700 | [diff] [blame] | 278 | pra_list->total_pkt_count++; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 279 | |
Marc Yang | f699254 | 2011-05-16 19:17:49 -0700 | [diff] [blame] | 280 | atomic_inc(&priv->wmm.tx_pkts_queued); |
| 281 | |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 282 | tx_info_aggr->flags |= MWIFIEX_BUF_FLAG_REQUEUED_PKT; |
| 283 | spin_unlock_irqrestore(&priv->wmm.ra_list_spinlock, |
| 284 | ra_list_flags); |
| 285 | dev_dbg(adapter->dev, "data: -EBUSY is returned\n"); |
| 286 | break; |
| 287 | case -1: |
Avinash Patil | e7f767a | 2013-01-03 21:21:32 -0800 | [diff] [blame] | 288 | if (adapter->iface_type != MWIFIEX_PCIE) |
| 289 | adapter->data_sent = false; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 290 | dev_err(adapter->dev, "%s: host_to_card failed: %#x\n", |
Yogesh Ashok Powar | 8426684 | 2012-03-13 19:22:34 -0700 | [diff] [blame] | 291 | __func__, ret); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 292 | adapter->dbg.num_tx_host_to_card_failure++; |
Avinash Patil | 47411a0 | 2012-11-01 18:44:16 -0700 | [diff] [blame] | 293 | mwifiex_write_data_complete(adapter, skb_aggr, 1, ret); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 294 | return 0; |
| 295 | case -EINPROGRESS: |
Avinash Patil | e7f767a | 2013-01-03 21:21:32 -0800 | [diff] [blame] | 296 | if (adapter->iface_type != MWIFIEX_PCIE) |
| 297 | adapter->data_sent = false; |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 298 | break; |
| 299 | case 0: |
Avinash Patil | 47411a0 | 2012-11-01 18:44:16 -0700 | [diff] [blame] | 300 | mwifiex_write_data_complete(adapter, skb_aggr, 1, ret); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 301 | break; |
| 302 | default: |
| 303 | break; |
| 304 | } |
| 305 | if (ret != -EBUSY) { |
Andreas Fenkart | 2e23731 | 2013-04-18 16:33:45 -0700 | [diff] [blame] | 306 | mwifiex_rotate_priolists(priv, pra_list, ptrindex); |
Bing Zhao | 5e6e3a9 | 2011-03-21 18:00:50 -0700 | [diff] [blame] | 307 | } |
| 308 | |
| 309 | return 0; |
| 310 | } |