txrx.c (58109df67aa073756eb5a2dc2ae068bc1bbcc125) txrx.c (363f149ce37bea91069177eab691111b242bfe73)
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 279 unchanged lines hidden (view full) ---

288 int status = 0;
289 struct ath6kl_cookie *cookie = NULL;
290
291 if (WARN_ON_ONCE(ar->state == ATH6KL_STATE_WOW)) {
292 dev_kfree_skb(skb);
293 return -EACCES;
294 }
295
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 279 unchanged lines hidden (view full) ---

288 int status = 0;
289 struct ath6kl_cookie *cookie = NULL;
290
291 if (WARN_ON_ONCE(ar->state == ATH6KL_STATE_WOW)) {
292 dev_kfree_skb(skb);
293 return -EACCES;
294 }
295
296 if (WARN_ON_ONCE(eid == ENDPOINT_UNUSED ||
297 eid >= ENDPOINT_MAX)) {
298 status = -EINVAL;
299 goto fail_ctrl_tx;
300 }
301
296 spin_lock_bh(&ar->lock);
297
298 ath6kl_dbg(ATH6KL_DBG_WLAN_TX,
299 "%s: skb=0x%p, len=0x%x eid =%d\n", __func__,
300 skb, skb->len, eid);
301
302 if (test_bit(WMI_CTRL_EP_FULL, &ar->flag) && (eid == ar->ctrl_ep)) {
303 /*

--- 1550 unchanged lines hidden ---
302 spin_lock_bh(&ar->lock);
303
304 ath6kl_dbg(ATH6KL_DBG_WLAN_TX,
305 "%s: skb=0x%p, len=0x%x eid =%d\n", __func__,
306 skb, skb->len, eid);
307
308 if (test_bit(WMI_CTRL_EP_FULL, &ar->flag) && (eid == ar->ctrl_ep)) {
309 /*

--- 1550 unchanged lines hidden ---