qtnfmac: get rid of QTNF_STATE_AP_CONFIG
QTNF_STATE_AP_CONFIG is redundant and its usage can be safely removed. 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
f99201cb08
commit
524522c445
@@ -275,13 +275,6 @@ static int qtnf_start_ap(struct wiphy *wiphy, struct net_device *dev,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!(vif->bss_status & QTNF_STATE_AP_CONFIG)) {
|
||||
pr_err("VIF%u.%u: AP config failed in FW\n", vif->mac->macid,
|
||||
vif->vifid);
|
||||
ret = -EFAULT;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = qtnf_mgmt_set_appie(vif, &settings->beacon);
|
||||
if (ret) {
|
||||
pr_err("VIF%u.%u: failed to add IEs to beacon\n",
|
||||
@@ -316,7 +309,6 @@ static int qtnf_stop_ap(struct wiphy *wiphy, struct net_device *dev)
|
||||
pr_err("VIF%u.%u: failed to stop AP operation in FW\n",
|
||||
vif->mac->macid, vif->vifid);
|
||||
vif->bss_status &= ~QTNF_STATE_AP_START;
|
||||
vif->bss_status &= ~QTNF_STATE_AP_CONFIG;
|
||||
|
||||
netif_carrier_off(vif->netdev);
|
||||
}
|
||||
|
Reference in New Issue
Block a user