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>
This commit is contained in:
parent
9739763310
commit
6bfe61d697
|
@ -2337,7 +2337,6 @@ int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif,
|
||||||
|
|
||||||
switch (res_code) {
|
switch (res_code) {
|
||||||
case QLINK_CMD_RESULT_OK:
|
case QLINK_CMD_RESULT_OK:
|
||||||
mac->status |= QTNF_MAC_CSA_ACTIVE;
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
break;
|
break;
|
||||||
case QLINK_CMD_RESULT_ENOTFOUND:
|
case QLINK_CMD_RESULT_ENOTFOUND:
|
||||||
|
|
|
@ -89,10 +89,6 @@ enum qtnf_sta_state {
|
||||||
QTNF_STA_CONNECTED
|
QTNF_STA_CONNECTED
|
||||||
};
|
};
|
||||||
|
|
||||||
enum qtnf_mac_status {
|
|
||||||
QTNF_MAC_CSA_ACTIVE = BIT(0)
|
|
||||||
};
|
|
||||||
|
|
||||||
struct qtnf_vif {
|
struct qtnf_vif {
|
||||||
struct wireless_dev wdev;
|
struct wireless_dev wdev;
|
||||||
u8 vifid;
|
u8 vifid;
|
||||||
|
@ -141,7 +137,6 @@ struct qtnf_wmac {
|
||||||
u8 macid;
|
u8 macid;
|
||||||
u8 wiphy_registered;
|
u8 wiphy_registered;
|
||||||
u8 macaddr[ETH_ALEN];
|
u8 macaddr[ETH_ALEN];
|
||||||
u32 status;
|
|
||||||
struct qtnf_bus *bus;
|
struct qtnf_bus *bus;
|
||||||
struct qtnf_mac_info macinfo;
|
struct qtnf_mac_info macinfo;
|
||||||
struct qtnf_vif iflist[QTNF_MAX_INTF];
|
struct qtnf_vif iflist[QTNF_MAX_INTF];
|
||||||
|
|
|
@ -381,8 +381,6 @@ qtnf_event_handle_freq_change(struct qtnf_wmac *mac,
|
||||||
mac->macid, chandef.chan->hw_value, chandef.center_freq1,
|
mac->macid, chandef.chan->hw_value, chandef.center_freq1,
|
||||||
chandef.center_freq2, chandef.width);
|
chandef.center_freq2, chandef.width);
|
||||||
|
|
||||||
mac->status &= ~QTNF_MAC_CSA_ACTIVE;
|
|
||||||
|
|
||||||
memcpy(&mac->chandef, &chandef, sizeof(mac->chandef));
|
memcpy(&mac->chandef, &chandef, sizeof(mac->chandef));
|
||||||
|
|
||||||
for (i = 0; i < QTNF_MAX_INTF; i++) {
|
for (i = 0; i < QTNF_MAX_INTF; i++) {
|
||||||
|
|
Loading…
Reference in New Issue