|
@@ -4251,6 +4251,7 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev,
|
|
|
brcmf_dbg(TRACE, "GO mode configuration complete\n");
|
|
|
}
|
|
|
set_bit(BRCMF_VIF_STATUS_AP_CREATED, &ifp->vif->sme_state);
|
|
|
+ brcmf_net_setcarrier(ifp, true);
|
|
|
|
|
|
exit:
|
|
|
if ((err) && (!mbss)) {
|
|
@@ -4315,6 +4316,7 @@ static int brcmf_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
|
|
|
brcmf_set_mpc(ifp, 1);
|
|
|
brcmf_configure_arp_offload(ifp, true);
|
|
|
clear_bit(BRCMF_VIF_STATUS_AP_CREATED, &ifp->vif->sme_state);
|
|
|
+ brcmf_net_setcarrier(ifp, false);
|
|
|
|
|
|
return err;
|
|
|
}
|
|
@@ -5024,6 +5026,7 @@ brcmf_notify_connect_status(struct brcmf_if *ifp,
|
|
|
&ifp->vif->sme_state);
|
|
|
} else
|
|
|
brcmf_bss_connect_done(cfg, ndev, e, true);
|
|
|
+ brcmf_net_setcarrier(ifp, true);
|
|
|
} else if (brcmf_is_linkdown(e)) {
|
|
|
brcmf_dbg(CONN, "Linkdown\n");
|
|
|
if (!brcmf_is_ibssmode(ifp->vif)) {
|
|
@@ -5033,6 +5036,7 @@ brcmf_notify_connect_status(struct brcmf_if *ifp,
|
|
|
brcmf_init_prof(ndev_to_prof(ndev));
|
|
|
if (ndev != cfg_to_ndev(cfg))
|
|
|
complete(&cfg->vif_disabled);
|
|
|
+ brcmf_net_setcarrier(ifp, false);
|
|
|
} else if (brcmf_is_nonetwork(cfg, e)) {
|
|
|
if (brcmf_is_ibssmode(ifp->vif))
|
|
|
clear_bit(BRCMF_VIF_STATUS_CONNECTING,
|