qtnfmac: get rid of QTNF_STATE_AP_START flag
QTNF_STATE_AP_START usage is redundant and imposes additional state synchronization maintenance. We may as well leave state checking to network card and upper layers (cfg80211, nl80211 and userspace). Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

committed by
Kalle Valo

parent
524522c445
commit
d7b80052fa
@@ -173,7 +173,6 @@ int qtnf_cmd_send_start_ap(struct qtnf_vif *vif)
|
||||
goto out;
|
||||
}
|
||||
|
||||
vif->bss_status |= QTNF_STATE_AP_START;
|
||||
netif_carrier_on(vif->netdev);
|
||||
|
||||
out:
|
||||
@@ -287,8 +286,6 @@ int qtnf_cmd_send_stop_ap(struct qtnf_vif *vif)
|
||||
goto out;
|
||||
}
|
||||
|
||||
vif->bss_status &= ~QTNF_STATE_AP_START;
|
||||
|
||||
netif_carrier_off(vif->netdev);
|
||||
|
||||
out:
|
||||
|
Reference in New Issue
Block a user