Lines Matching refs:bwcfg
14117 wnm_bss_select_weight_cfg_t *bwcfg; in wl_cfg80211_wbtext_weight_config() local
14121 bwcfg = (wnm_bss_select_weight_cfg_t *)MALLOCZ(cfg->osh, sizeof(*bwcfg)); in wl_cfg80211_wbtext_weight_config()
14122 if (unlikely(!bwcfg)) { in wl_cfg80211_wbtext_weight_config()
14127 bwcfg->version = WNM_BSSLOAD_MONITOR_VERSION; in wl_cfg80211_wbtext_weight_config()
14128 bwcfg->type = 0; in wl_cfg80211_wbtext_weight_config()
14129 bwcfg->weight = 0; in wl_cfg80211_wbtext_weight_config()
14134 bwcfg->type = WNM_BSS_SELECT_TYPE_RSSI; in wl_cfg80211_wbtext_weight_config()
14136 bwcfg->type = WNM_BSS_SELECT_TYPE_CU; in wl_cfg80211_wbtext_weight_config()
14138 bwcfg->type = WNM_BSS_SELECT_TYPE_ESTM_DL; in wl_cfg80211_wbtext_weight_config()
14145 if (BCME_BADBAND == wl_android_bandstr_to_fwband(band, &bwcfg->band)) { in wl_cfg80211_wbtext_weight_config()
14152 if (bwcfg->band == WLC_BAND_ALL) { in wl_cfg80211_wbtext_weight_config()
14156 if ((err = wldev_iovar_getbuf(ndev, "wnm_bss_select_weight", bwcfg, in wl_cfg80211_wbtext_weight_config()
14157 sizeof(*bwcfg), in wl_cfg80211_wbtext_weight_config()
14162 memcpy(bwcfg, ioctl_buf, sizeof(*bwcfg)); in wl_cfg80211_wbtext_weight_config()
14164 (bwcfg->type == WNM_BSS_SELECT_TYPE_RSSI) ? "RSSI" : in wl_cfg80211_wbtext_weight_config()
14165 (bwcfg->type == WNM_BSS_SELECT_TYPE_CU) ? "CU": "ESTM_DL", in wl_cfg80211_wbtext_weight_config()
14166 wl_android_get_band_str(bwcfg->band), bwcfg->weight); in wl_cfg80211_wbtext_weight_config()
14171 bwcfg->weight = simple_strtol(weight, &endptr, 0); in wl_cfg80211_wbtext_weight_config()
14177 if ((err = wldev_iovar_setbuf(ndev, "wnm_bss_select_weight", bwcfg, in wl_cfg80211_wbtext_weight_config()
14178 sizeof(*bwcfg), in wl_cfg80211_wbtext_weight_config()
14184 if (bwcfg) { in wl_cfg80211_wbtext_weight_config()
14185 MFREE(cfg->osh, bwcfg, sizeof(*bwcfg)); in wl_cfg80211_wbtext_weight_config()