wmi.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | wmi.c (c9b260a684d0493238433e08fc2ac7865a89aece) |
---|---|
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 * --- 1570 unchanged lines hidden (view full) --- 1579 struct ath6kl_vif *vif) 1580{ 1581 struct wmi_txe_notify_event *ev; 1582 u32 rate, pkts; 1583 1584 if (len < sizeof(*ev)) 1585 return -EINVAL; 1586 | 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 * --- 1570 unchanged lines hidden (view full) --- 1579 struct ath6kl_vif *vif) 1580{ 1581 struct wmi_txe_notify_event *ev; 1582 u32 rate, pkts; 1583 1584 if (len < sizeof(*ev)) 1585 return -EINVAL; 1586 |
1587 if (vif->nw_type != INFRA_NETWORK || 1588 !test_bit(ATH6KL_FW_CAPABILITY_TX_ERR_NOTIFY, 1589 vif->ar->fw_capabilities)) 1590 return -EOPNOTSUPP; 1591 |
|
1587 if (vif->sme_state != SME_CONNECTED) 1588 return -ENOTCONN; 1589 1590 ev = (struct wmi_txe_notify_event *) datap; 1591 rate = le32_to_cpu(ev->rate); 1592 pkts = le32_to_cpu(ev->pkts); 1593 1594 ath6kl_dbg(ATH6KL_DBG_WMI, "TXE notify event: peer %pM rate %d% pkts %d intvl %ds\n", --- 2572 unchanged lines hidden --- | 1592 if (vif->sme_state != SME_CONNECTED) 1593 return -ENOTCONN; 1594 1595 ev = (struct wmi_txe_notify_event *) datap; 1596 rate = le32_to_cpu(ev->rate); 1597 pkts = le32_to_cpu(ev->pkts); 1598 1599 ath6kl_dbg(ATH6KL_DBG_WMI, "TXE notify event: peer %pM rate %d% pkts %d intvl %ds\n", --- 2572 unchanged lines hidden --- |