diff options
author | Igor Mitsyanko <igor.mitsyanko.os@quantenna.com> | 2017-09-21 14:34:36 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-09-25 11:27:17 +0300 |
commit | 6bfe61d697cb24b0838227c40bff8603addae652 (patch) | |
tree | d5c620bc8311e6378179d1f64f1861cb4aa03849 /drivers/net | |
parent | 97397633108a34ec5f5f316ffd1d3709e1c0479d (diff) | |
download | talos-op-linux-6bfe61d697cb24b0838227c40bff8603addae652.tar.gz talos-op-linux-6bfe61d697cb24b0838227c40bff8603addae652.zip |
qtnfmac: remove unused mac::status field
There are no users of this field and it can safely be removed.
Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/quantenna/qtnfmac/commands.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/quantenna/qtnfmac/core.h | 5 | ||||
-rw-r--r-- | drivers/net/wireless/quantenna/qtnfmac/event.c | 2 |
3 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.c b/drivers/net/wireless/quantenna/qtnfmac/commands.c index 42f7e1dadd29..8f95f9842f49 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.c +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.c @@ -2337,7 +2337,6 @@ int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif, switch (res_code) { case QLINK_CMD_RESULT_OK: - mac->status |= QTNF_MAC_CSA_ACTIVE; ret = 0; break; case QLINK_CMD_RESULT_ENOTFOUND: diff --git a/drivers/net/wireless/quantenna/qtnfmac/core.h b/drivers/net/wireless/quantenna/qtnfmac/core.h index 521ce094f2a6..2cd015048598 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/core.h +++ b/drivers/net/wireless/quantenna/qtnfmac/core.h @@ -89,10 +89,6 @@ enum qtnf_sta_state { QTNF_STA_CONNECTED }; -enum qtnf_mac_status { - QTNF_MAC_CSA_ACTIVE = BIT(0) -}; - struct qtnf_vif { struct wireless_dev wdev; u8 vifid; @@ -141,7 +137,6 @@ struct qtnf_wmac { u8 macid; u8 wiphy_registered; u8 macaddr[ETH_ALEN]; - u32 status; struct qtnf_bus *bus; struct qtnf_mac_info macinfo; struct qtnf_vif iflist[QTNF_MAX_INTF]; diff --git a/drivers/net/wireless/quantenna/qtnfmac/event.c b/drivers/net/wireless/quantenna/qtnfmac/event.c index 77563b0b1a7a..b1acc24bdc39 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/event.c +++ b/drivers/net/wireless/quantenna/qtnfmac/event.c @@ -381,8 +381,6 @@ qtnf_event_handle_freq_change(struct qtnf_wmac *mac, mac->macid, chandef.chan->hw_value, chandef.center_freq1, chandef.center_freq2, chandef.width); - mac->status &= ~QTNF_MAC_CSA_ACTIVE; - memcpy(&mac->chandef, &chandef, sizeof(mac->chandef)); for (i = 0; i < QTNF_MAX_INTF; i++) { |