Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of wl1271 |
| 3 | * |
| 4 | * Copyright (C) 2008-2009 Nokia Corporation |
| 5 | * |
| 6 | * Contact: Luciano Coelho <luciano.coelho@nokia.com> |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License |
| 10 | * version 2 as published by the Free Software Foundation. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 20 | * 02110-1301 USA |
| 21 | * |
| 22 | */ |
| 23 | |
Shahar Levi | 00d2010 | 2010-11-08 11:20:10 +0000 | [diff] [blame] | 24 | #include "reg.h" |
| 25 | #include "ps.h" |
| 26 | #include "io.h" |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 27 | #include "tx.h" |
Luciano Coelho | 0f4e312 | 2011-10-07 11:02:42 +0300 | [diff] [blame] | 28 | #include "debug.h" |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 29 | |
| 30 | #define WL1271_WAKEUP_TIMEOUT 500 |
| 31 | |
Juuso Oikarinen | 37b70a8 | 2009-10-08 21:56:21 +0300 | [diff] [blame] | 32 | void wl1271_elp_work(struct work_struct *work) |
| 33 | { |
| 34 | struct delayed_work *dwork; |
| 35 | struct wl1271 *wl; |
Eliad Peller | c29bb00 | 2011-10-10 10:13:03 +0200 | [diff] [blame] | 36 | struct wl12xx_vif *wlvif; |
Juuso Oikarinen | 37b70a8 | 2009-10-08 21:56:21 +0300 | [diff] [blame] | 37 | |
| 38 | dwork = container_of(work, struct delayed_work, work); |
| 39 | wl = container_of(dwork, struct wl1271, elp_work); |
| 40 | |
| 41 | wl1271_debug(DEBUG_PSM, "elp work"); |
| 42 | |
| 43 | mutex_lock(&wl->mutex); |
| 44 | |
Juuso Oikarinen | 8c7f4f3 | 2010-09-21 06:23:29 +0200 | [diff] [blame] | 45 | if (unlikely(wl->state == WL1271_STATE_OFF)) |
| 46 | goto out; |
| 47 | |
Eliad Peller | a665d6e | 2011-04-03 02:01:59 +0300 | [diff] [blame] | 48 | /* our work might have been already cancelled */ |
| 49 | if (unlikely(!test_bit(WL1271_FLAG_ELP_REQUESTED, &wl->flags))) |
| 50 | goto out; |
| 51 | |
Eliad Peller | c29bb00 | 2011-10-10 10:13:03 +0200 | [diff] [blame] | 52 | if (test_bit(WL1271_FLAG_IN_ELP, &wl->flags)) |
Juuso Oikarinen | 37b70a8 | 2009-10-08 21:56:21 +0300 | [diff] [blame] | 53 | goto out; |
| 54 | |
Eliad Peller | c29bb00 | 2011-10-10 10:13:03 +0200 | [diff] [blame] | 55 | wl12xx_for_each_wlvif(wl, wlvif) { |
Eliad Peller | a0c7b78 | 2011-12-18 20:25:41 +0200 | [diff] [blame] | 56 | if (wlvif->bss_type == BSS_TYPE_AP_BSS) |
| 57 | goto out; |
| 58 | |
Eyal Shapira | d18da7f | 2012-01-31 11:57:25 +0200 | [diff] [blame^] | 59 | if (!test_bit(WLVIF_FLAG_IN_AUTO_PS, &wlvif->flags) && |
Eliad Peller | a0c7b78 | 2011-12-18 20:25:41 +0200 | [diff] [blame] | 60 | test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) |
Eliad Peller | c29bb00 | 2011-10-10 10:13:03 +0200 | [diff] [blame] | 61 | goto out; |
| 62 | } |
| 63 | |
Juuso Oikarinen | 37b70a8 | 2009-10-08 21:56:21 +0300 | [diff] [blame] | 64 | wl1271_debug(DEBUG_PSM, "chip to elp"); |
Juuso Oikarinen | 7462141 | 2009-10-12 15:08:54 +0300 | [diff] [blame] | 65 | wl1271_raw_write32(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_SLEEP); |
Juuso Oikarinen | 71449f8 | 2009-12-11 15:41:07 +0200 | [diff] [blame] | 66 | set_bit(WL1271_FLAG_IN_ELP, &wl->flags); |
Juuso Oikarinen | 37b70a8 | 2009-10-08 21:56:21 +0300 | [diff] [blame] | 67 | |
| 68 | out: |
| 69 | mutex_unlock(&wl->mutex); |
| 70 | } |
| 71 | |
| 72 | #define ELP_ENTRY_DELAY 5 |
| 73 | |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 74 | /* Routines to toggle sleep mode while in ELP */ |
| 75 | void wl1271_ps_elp_sleep(struct wl1271 *wl) |
| 76 | { |
Eliad Peller | c29bb00 | 2011-10-10 10:13:03 +0200 | [diff] [blame] | 77 | struct wl12xx_vif *wlvif; |
| 78 | |
Eliad Peller | a665d6e | 2011-04-03 02:01:59 +0300 | [diff] [blame] | 79 | /* we shouldn't get consecutive sleep requests */ |
| 80 | if (WARN_ON(test_and_set_bit(WL1271_FLAG_ELP_REQUESTED, &wl->flags))) |
| 81 | return; |
| 82 | |
Eliad Peller | c29bb00 | 2011-10-10 10:13:03 +0200 | [diff] [blame] | 83 | wl12xx_for_each_wlvif(wl, wlvif) { |
Eliad Peller | a0c7b78 | 2011-12-18 20:25:41 +0200 | [diff] [blame] | 84 | if (wlvif->bss_type == BSS_TYPE_AP_BSS) |
| 85 | return; |
| 86 | |
Eyal Shapira | d18da7f | 2012-01-31 11:57:25 +0200 | [diff] [blame^] | 87 | if (!test_bit(WLVIF_FLAG_IN_AUTO_PS, &wlvif->flags) && |
Eliad Peller | a0c7b78 | 2011-12-18 20:25:41 +0200 | [diff] [blame] | 88 | test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) |
Eliad Peller | c29bb00 | 2011-10-10 10:13:03 +0200 | [diff] [blame] | 89 | return; |
| 90 | } |
Eliad Peller | a665d6e | 2011-04-03 02:01:59 +0300 | [diff] [blame] | 91 | |
| 92 | ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, |
| 93 | msecs_to_jiffies(ELP_ENTRY_DELAY)); |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 94 | } |
| 95 | |
Ido Yariv | a620865 | 2011-03-01 15:14:41 +0200 | [diff] [blame] | 96 | int wl1271_ps_elp_wakeup(struct wl1271 *wl) |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 97 | { |
| 98 | DECLARE_COMPLETION_ONSTACK(compl); |
| 99 | unsigned long flags; |
| 100 | int ret; |
| 101 | u32 start_time = jiffies; |
| 102 | bool pending = false; |
| 103 | |
Eliad Peller | a665d6e | 2011-04-03 02:01:59 +0300 | [diff] [blame] | 104 | /* |
| 105 | * we might try to wake up even if we didn't go to sleep |
| 106 | * before (e.g. on boot) |
| 107 | */ |
| 108 | if (!test_and_clear_bit(WL1271_FLAG_ELP_REQUESTED, &wl->flags)) |
| 109 | return 0; |
| 110 | |
| 111 | /* don't cancel_sync as it might contend for a mutex and deadlock */ |
| 112 | cancel_delayed_work(&wl->elp_work); |
| 113 | |
Juuso Oikarinen | 71449f8 | 2009-12-11 15:41:07 +0200 | [diff] [blame] | 114 | if (!test_bit(WL1271_FLAG_IN_ELP, &wl->flags)) |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 115 | return 0; |
| 116 | |
| 117 | wl1271_debug(DEBUG_PSM, "waking up chip from elp"); |
| 118 | |
| 119 | /* |
| 120 | * The spinlock is required here to synchronize both the work and |
| 121 | * the completion variable in one entity. |
| 122 | */ |
| 123 | spin_lock_irqsave(&wl->wl_lock, flags); |
Ido Yariv | a620865 | 2011-03-01 15:14:41 +0200 | [diff] [blame] | 124 | if (test_bit(WL1271_FLAG_IRQ_RUNNING, &wl->flags)) |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 125 | pending = true; |
| 126 | else |
| 127 | wl->elp_compl = &compl; |
| 128 | spin_unlock_irqrestore(&wl->wl_lock, flags); |
| 129 | |
Juuso Oikarinen | 7462141 | 2009-10-12 15:08:54 +0300 | [diff] [blame] | 130 | wl1271_raw_write32(wl, HW_ACCESS_ELP_CTRL_REG_ADDR, ELPCTRL_WAKE_UP); |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 131 | |
| 132 | if (!pending) { |
| 133 | ret = wait_for_completion_timeout( |
| 134 | &compl, msecs_to_jiffies(WL1271_WAKEUP_TIMEOUT)); |
| 135 | if (ret == 0) { |
| 136 | wl1271_error("ELP wakeup timeout!"); |
Ido Yariv | baacb9ae | 2011-06-06 14:57:05 +0300 | [diff] [blame] | 137 | wl12xx_queue_recovery_work(wl); |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 138 | ret = -ETIMEDOUT; |
| 139 | goto err; |
| 140 | } else if (ret < 0) { |
| 141 | wl1271_error("ELP wakeup completion error."); |
| 142 | goto err; |
| 143 | } |
| 144 | } |
| 145 | |
Juuso Oikarinen | 71449f8 | 2009-12-11 15:41:07 +0200 | [diff] [blame] | 146 | clear_bit(WL1271_FLAG_IN_ELP, &wl->flags); |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 147 | |
| 148 | wl1271_debug(DEBUG_PSM, "wakeup time: %u ms", |
| 149 | jiffies_to_msecs(jiffies - start_time)); |
| 150 | goto out; |
| 151 | |
| 152 | err: |
| 153 | spin_lock_irqsave(&wl->wl_lock, flags); |
| 154 | wl->elp_compl = NULL; |
| 155 | spin_unlock_irqrestore(&wl->wl_lock, flags); |
| 156 | return ret; |
| 157 | |
| 158 | out: |
| 159 | return 0; |
| 160 | } |
| 161 | |
Eliad Peller | 0603d89 | 2011-10-05 11:55:51 +0200 | [diff] [blame] | 162 | int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif, |
Eyal Shapira | 248a001 | 2012-01-31 11:57:23 +0200 | [diff] [blame] | 163 | enum wl1271_cmd_ps_mode mode) |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 164 | { |
| 165 | int ret; |
Eyal Shapira | f1d63a5 | 2012-01-31 11:57:21 +0200 | [diff] [blame] | 166 | u16 timeout = wl->conf.conn.dynamic_ps_timeout; |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 167 | |
| 168 | switch (mode) { |
Eyal Shapira | f1d63a5 | 2012-01-31 11:57:21 +0200 | [diff] [blame] | 169 | case STATION_AUTO_PS_MODE: |
| 170 | wl1271_debug(DEBUG_PSM, "entering psm (mode=%d,timeout=%u)", |
| 171 | mode, timeout); |
Juuso Oikarinen | 1922167 | 2009-10-08 21:56:35 +0300 | [diff] [blame] | 172 | |
Eliad Peller | 0603d89 | 2011-10-05 11:55:51 +0200 | [diff] [blame] | 173 | ret = wl1271_acx_wake_up_conditions(wl, wlvif); |
Juuso Oikarinen | 03f06b7 | 2010-08-10 06:38:36 +0200 | [diff] [blame] | 174 | if (ret < 0) { |
| 175 | wl1271_error("couldn't set wake up conditions"); |
| 176 | return ret; |
| 177 | } |
| 178 | |
Eyal Shapira | f1d63a5 | 2012-01-31 11:57:21 +0200 | [diff] [blame] | 179 | ret = wl1271_cmd_ps_mode(wl, wlvif, mode, timeout); |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 180 | if (ret < 0) |
| 181 | return ret; |
| 182 | |
Eyal Shapira | d18da7f | 2012-01-31 11:57:25 +0200 | [diff] [blame^] | 183 | set_bit(WLVIF_FLAG_IN_AUTO_PS, &wlvif->flags); |
Eyal Shapira | ed471d3 | 2012-01-31 11:57:24 +0200 | [diff] [blame] | 184 | |
| 185 | /* enable beacon early termination. Not relevant for 5GHz */ |
| 186 | if (wlvif->band == IEEE80211_BAND_2GHZ) { |
| 187 | ret = wl1271_acx_bet_enable(wl, wlvif, true); |
| 188 | if (ret < 0) |
| 189 | return ret; |
| 190 | } |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 191 | break; |
| 192 | case STATION_ACTIVE_MODE: |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 193 | wl1271_debug(DEBUG_PSM, "leaving psm"); |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 194 | |
Juuso Oikarinen | 11f70f9 | 2009-10-13 12:47:46 +0300 | [diff] [blame] | 195 | /* disable beacon early termination */ |
Eliad Peller | 1b92f15 | 2011-10-10 10:13:09 +0200 | [diff] [blame] | 196 | if (wlvif->band == IEEE80211_BAND_2GHZ) { |
Eliad Peller | 0603d89 | 2011-10-05 11:55:51 +0200 | [diff] [blame] | 197 | ret = wl1271_acx_bet_enable(wl, wlvif, false); |
Shahar Levi | 0e44eb2 | 2011-05-16 15:35:30 +0300 | [diff] [blame] | 198 | if (ret < 0) |
| 199 | return ret; |
| 200 | } |
Juuso Oikarinen | 11f70f9 | 2009-10-13 12:47:46 +0300 | [diff] [blame] | 201 | |
Eyal Shapira | f1d63a5 | 2012-01-31 11:57:21 +0200 | [diff] [blame] | 202 | ret = wl1271_cmd_ps_mode(wl, wlvif, mode, 0); |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 203 | if (ret < 0) |
| 204 | return ret; |
| 205 | |
Eyal Shapira | d18da7f | 2012-01-31 11:57:25 +0200 | [diff] [blame^] | 206 | clear_bit(WLVIF_FLAG_IN_AUTO_PS, &wlvif->flags); |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 207 | break; |
Eyal Shapira | f1d63a5 | 2012-01-31 11:57:21 +0200 | [diff] [blame] | 208 | case STATION_POWER_SAVE_MODE: |
| 209 | default: |
| 210 | wl1271_warning("trying to set ps to unsupported mode %d", mode); |
| 211 | ret = -EINVAL; |
Luciano Coelho | f5fc0f8 | 2009-08-06 16:25:28 +0300 | [diff] [blame] | 212 | } |
| 213 | |
| 214 | return ret; |
| 215 | } |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 216 | |
| 217 | static void wl1271_ps_filter_frames(struct wl1271 *wl, u8 hlid) |
| 218 | { |
Arik Nemtsov | f1a4638 | 2011-07-07 14:25:23 +0300 | [diff] [blame] | 219 | int i; |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 220 | struct sk_buff *skb; |
| 221 | struct ieee80211_tx_info *info; |
| 222 | unsigned long flags; |
Arik Nemtsov | f1a4638 | 2011-07-07 14:25:23 +0300 | [diff] [blame] | 223 | int filtered[NUM_TX_QUEUES]; |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 224 | |
Arik Nemtsov | f8e0af6 | 2011-08-25 12:43:12 +0300 | [diff] [blame] | 225 | /* filter all frames currently in the low level queues for this hlid */ |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 226 | for (i = 0; i < NUM_TX_QUEUES; i++) { |
Arik Nemtsov | f1a4638 | 2011-07-07 14:25:23 +0300 | [diff] [blame] | 227 | filtered[i] = 0; |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 228 | while ((skb = skb_dequeue(&wl->links[hlid].tx_queue[i]))) { |
Arik Nemtsov | f8e0af6 | 2011-08-25 12:43:12 +0300 | [diff] [blame] | 229 | filtered[i]++; |
| 230 | |
| 231 | if (WARN_ON(wl12xx_is_dummy_packet(wl, skb))) |
| 232 | continue; |
| 233 | |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 234 | info = IEEE80211_SKB_CB(skb); |
| 235 | info->flags |= IEEE80211_TX_STAT_TX_FILTERED; |
| 236 | info->status.rates[0].idx = -1; |
Eliad Peller | c27d3ac | 2011-06-07 10:40:39 +0300 | [diff] [blame] | 237 | ieee80211_tx_status_ni(wl->hw, skb); |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 238 | } |
| 239 | } |
| 240 | |
| 241 | spin_lock_irqsave(&wl->wl_lock, flags); |
Arik Nemtsov | f1a4638 | 2011-07-07 14:25:23 +0300 | [diff] [blame] | 242 | for (i = 0; i < NUM_TX_QUEUES; i++) |
| 243 | wl->tx_queue_count[i] -= filtered[i]; |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 244 | spin_unlock_irqrestore(&wl->wl_lock, flags); |
| 245 | |
| 246 | wl1271_handle_tx_low_watermark(wl); |
| 247 | } |
| 248 | |
Eliad Peller | 6e8cd33 | 2011-10-10 10:13:13 +0200 | [diff] [blame] | 249 | void wl12xx_ps_link_start(struct wl1271 *wl, struct wl12xx_vif *wlvif, |
| 250 | u8 hlid, bool clean_queues) |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 251 | { |
| 252 | struct ieee80211_sta *sta; |
Eliad Peller | 6e8cd33 | 2011-10-10 10:13:13 +0200 | [diff] [blame] | 253 | struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif); |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 254 | |
| 255 | if (test_bit(hlid, &wl->ap_ps_map)) |
| 256 | return; |
| 257 | |
Arik Nemtsov | 9b17f1b | 2011-08-14 13:17:35 +0300 | [diff] [blame] | 258 | wl1271_debug(DEBUG_PSM, "start mac80211 PSM on hlid %d pkts %d " |
| 259 | "clean_queues %d", hlid, wl->links[hlid].allocated_pkts, |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 260 | clean_queues); |
| 261 | |
| 262 | rcu_read_lock(); |
Eliad Peller | 6e8cd33 | 2011-10-10 10:13:13 +0200 | [diff] [blame] | 263 | sta = ieee80211_find_sta(vif, wl->links[hlid].addr); |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 264 | if (!sta) { |
| 265 | wl1271_error("could not find sta %pM for starting ps", |
| 266 | wl->links[hlid].addr); |
| 267 | rcu_read_unlock(); |
| 268 | return; |
| 269 | } |
| 270 | |
| 271 | ieee80211_sta_ps_transition_ni(sta, true); |
| 272 | rcu_read_unlock(); |
| 273 | |
| 274 | /* do we want to filter all frames from this link's queues? */ |
| 275 | if (clean_queues) |
| 276 | wl1271_ps_filter_frames(wl, hlid); |
| 277 | |
| 278 | __set_bit(hlid, &wl->ap_ps_map); |
| 279 | } |
| 280 | |
Eliad Peller | 6e8cd33 | 2011-10-10 10:13:13 +0200 | [diff] [blame] | 281 | void wl12xx_ps_link_end(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 hlid) |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 282 | { |
| 283 | struct ieee80211_sta *sta; |
Eliad Peller | 6e8cd33 | 2011-10-10 10:13:13 +0200 | [diff] [blame] | 284 | struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif); |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 285 | |
| 286 | if (!test_bit(hlid, &wl->ap_ps_map)) |
| 287 | return; |
| 288 | |
| 289 | wl1271_debug(DEBUG_PSM, "end mac80211 PSM on hlid %d", hlid); |
| 290 | |
| 291 | __clear_bit(hlid, &wl->ap_ps_map); |
| 292 | |
| 293 | rcu_read_lock(); |
Eliad Peller | 6e8cd33 | 2011-10-10 10:13:13 +0200 | [diff] [blame] | 294 | sta = ieee80211_find_sta(vif, wl->links[hlid].addr); |
Arik Nemtsov | b622d99 | 2011-02-23 00:22:31 +0200 | [diff] [blame] | 295 | if (!sta) { |
| 296 | wl1271_error("could not find sta %pM for ending ps", |
| 297 | wl->links[hlid].addr); |
| 298 | goto end; |
| 299 | } |
| 300 | |
| 301 | ieee80211_sta_ps_transition_ni(sta, false); |
| 302 | end: |
| 303 | rcu_read_unlock(); |
| 304 | } |