txrx.c (688d794c4c3f8b08c814381ee2edd3ede5856056) | txrx.c (416cf0b49e67254676b4762d1bab88df5130f909) |
---|---|
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 * --- 6 unchanged lines hidden (view full) --- 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 19 20#include "core.h" 21#include "debug.h" 22#include "htc-ops.h" | 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 * --- 6 unchanged lines hidden (view full) --- 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 19 20#include "core.h" 21#include "debug.h" 22#include "htc-ops.h" |
23#include "trace.h" |
|
23 24/* 25 * tid - tid_mux0..tid_mux3 26 * aid - tid_mux4..tid_mux7 27 */ 28#define ATH6KL_TID_MASK 0xf 29#define ATH6KL_AID_SHIFT 4 30 --- 252 unchanged lines hidden (view full) --- 283 284int ath6kl_control_tx(void *devt, struct sk_buff *skb, 285 enum htc_endpoint_id eid) 286{ 287 struct ath6kl *ar = devt; 288 int status = 0; 289 struct ath6kl_cookie *cookie = NULL; 290 | 24 25/* 26 * tid - tid_mux0..tid_mux3 27 * aid - tid_mux4..tid_mux7 28 */ 29#define ATH6KL_TID_MASK 0xf 30#define ATH6KL_AID_SHIFT 4 31 --- 252 unchanged lines hidden (view full) --- 284 285int ath6kl_control_tx(void *devt, struct sk_buff *skb, 286 enum htc_endpoint_id eid) 287{ 288 struct ath6kl *ar = devt; 289 int status = 0; 290 struct ath6kl_cookie *cookie = NULL; 291 |
292 trace_ath6kl_wmi_cmd(skb->data, skb->len); 293 |
|
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; --- 1571 unchanged lines hidden --- | 294 if (WARN_ON_ONCE(ar->state == ATH6KL_STATE_WOW)) { 295 dev_kfree_skb(skb); 296 return -EACCES; 297 } 298 299 if (WARN_ON_ONCE(eid == ENDPOINT_UNUSED || 300 eid >= ENDPOINT_MAX)) { 301 status = -EINVAL; --- 1571 unchanged lines hidden --- |