static u32 brcmf_dbg_level = WL_DBG_ERR;
-static bool check_sys_up(struct brcmf_cfg80211_vif *vif)
+static bool check_vif_up(struct brcmf_cfg80211_vif *vif)
{
if (!test_bit(BRCMF_VIF_STATUS_READY, &vif->sme_state)) {
WL_INFO("device is not ready : status (%lu)\n",
struct brcmf_if *ifp = netdev_priv(ndev);
s32 err = 0;
- if (check_sys_up(ifp->vif)) {
+ if (check_vif_up(ifp->vif)) {
err = brcmf_fil_iovar_int_set(ifp, "mpc", mpc);
if (err) {
WL_ERR("fail to set mpc\n");
WL_TRACE("Enter\n");
- if (!check_sys_up(container_of(request->wdev,
+ if (!check_vif_up(container_of(request->wdev,
struct brcmf_cfg80211_vif, wdev)))
return -EIO;
s32 err = 0;
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
if (changed & WIPHY_PARAM_RTS_THRESHOLD &&
s32 bcnprd;
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
if (params->ssid)
s32 err = 0;
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
brcmf_link_down(cfg);
s32 err = 0;
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
if (!sme->ssid) {
s32 err = 0;
WL_TRACE("Enter. Reason code = %d\n", reason_code);
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
clear_bit(BRCMF_VIF_STATUS_CONNECTED, &ifp->vif->sme_state);
s32 dbm = MBM_TO_DBM(mbm);
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
switch (type) {
s32 err = 0;
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
err = brcmf_fil_iovar_int_get(ifp, "qtxpower", &txpwrdbm);
WL_TRACE("Enter\n");
WL_CONN("key index (%d)\n", key_idx);
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
err = brcmf_fil_bsscfg_int_get(ifp, "wsec", &wsec);
WL_TRACE("Enter\n");
WL_CONN("key index (%d)\n", key_idx);
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
if (mac_addr) {
s32 err = 0;
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
memset(&key, 0, sizeof(key));
WL_TRACE("Enter\n");
WL_CONN("key index (%d)\n", key_idx);
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
memset(¶ms, 0, sizeof(params));
struct brcmf_sta_info_le sta_info_le;
WL_TRACE("Enter, MAC %pM\n", mac);
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
if (cfg->conf->mode == WL_MODE_AP) {
* FW later while initializing the dongle
*/
cfg->pwr_save = enabled;
- if (!check_sys_up(ifp->vif)) {
+ if (!check_vif_up(ifp->vif)) {
WL_INFO("Device is not ready, storing the value in cfg_info struct\n");
goto done;
s32 err = 0;
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
/* addr param is always NULL. ignore it */
*/
WL_TRACE("Enter\n");
- if (check_sys_up(ifp->vif))
+ if (check_vif_up(ifp->vif))
brcmf_invoke_iscan(wiphy_to_cfg(wiphy));
WL_TRACE("Exit\n");
*/
if ((test_bit(BRCMF_VIF_STATUS_CONNECTED, &ifp->vif->sme_state) ||
test_bit(BRCMF_VIF_STATUS_CONNECTING, &ifp->vif->sme_state)) &&
- check_sys_up(ifp->vif)) {
+ check_vif_up(ifp->vif)) {
WL_INFO("Disassociating from AP"
" while entering suspend state\n");
brcmf_link_down(cfg);
int pmkid_len;
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
pmkid_len = le32_to_cpu(pmkids->npmkid);
int i, pmkid_len;
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
memcpy(&pmkid.pmkid[0].BSSID, pmksa->bssid, ETH_ALEN);
s32 err = 0;
WL_TRACE("Enter\n");
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
memset(cfg->pmk_list, 0, sizeof(*cfg->pmk_list));
WL_TRACE("Enter %pM\n", mac);
- if (!check_sys_up(ifp->vif))
+ if (!check_vif_up(ifp->vif))
return -EIO;
memcpy(&scbval.ea, mac, ETH_ALEN);
*/
if ((test_bit(BRCMF_VIF_STATUS_CONNECTED, &ifp->vif->sme_state) ||
test_bit(BRCMF_VIF_STATUS_CONNECTING, &ifp->vif->sme_state)) &&
- check_sys_up(ifp->vif)) {
+ check_vif_up(ifp->vif)) {
WL_INFO("Disassociating from AP");
brcmf_link_down(cfg);