Lines Matching refs:bwcfg
11033 wnm_bss_select_weight_cfg_t *bwcfg; in wl_cfg80211_wbtext_weight_config() local
11037 bwcfg = (wnm_bss_select_weight_cfg_t *)MALLOCZ(cfg->osh, sizeof(*bwcfg)); in wl_cfg80211_wbtext_weight_config()
11038 if (unlikely(!bwcfg)) { in wl_cfg80211_wbtext_weight_config()
11043 bwcfg->version = WNM_BSSLOAD_MONITOR_VERSION; in wl_cfg80211_wbtext_weight_config()
11044 bwcfg->type = 0; in wl_cfg80211_wbtext_weight_config()
11045 bwcfg->weight = 0; in wl_cfg80211_wbtext_weight_config()
11050 bwcfg->type = WNM_BSS_SELECT_TYPE_RSSI; in wl_cfg80211_wbtext_weight_config()
11052 bwcfg->type = WNM_BSS_SELECT_TYPE_CU; in wl_cfg80211_wbtext_weight_config()
11054 bwcfg->type = WNM_BSS_SELECT_TYPE_ESTM_DL; in wl_cfg80211_wbtext_weight_config()
11062 bwcfg->band = WLC_BAND_5G; in wl_cfg80211_wbtext_weight_config()
11064 bwcfg->band = WLC_BAND_2G; in wl_cfg80211_wbtext_weight_config()
11066 bwcfg->band = WLC_BAND_ALL; in wl_cfg80211_wbtext_weight_config()
11074 if (bwcfg->band == WLC_BAND_ALL) { in wl_cfg80211_wbtext_weight_config()
11078 if ((err = wldev_iovar_getbuf(ndev, "wnm_bss_select_weight", bwcfg, in wl_cfg80211_wbtext_weight_config()
11079 sizeof(*bwcfg), in wl_cfg80211_wbtext_weight_config()
11084 memcpy(bwcfg, ioctl_buf, sizeof(*bwcfg)); in wl_cfg80211_wbtext_weight_config()
11086 (bwcfg->type == WNM_BSS_SELECT_TYPE_RSSI) ? "RSSI" : in wl_cfg80211_wbtext_weight_config()
11087 (bwcfg->type == WNM_BSS_SELECT_TYPE_CU) ? "CU": "ESTM_DL", in wl_cfg80211_wbtext_weight_config()
11088 (bwcfg->band == WLC_BAND_2G) ? "2G" : "5G", bwcfg->weight); in wl_cfg80211_wbtext_weight_config()
11093 bwcfg->weight = simple_strtol(weight, &endptr, 0); in wl_cfg80211_wbtext_weight_config()
11099 if ((err = wldev_iovar_setbuf(ndev, "wnm_bss_select_weight", bwcfg, in wl_cfg80211_wbtext_weight_config()
11100 sizeof(*bwcfg), in wl_cfg80211_wbtext_weight_config()
11106 if (bwcfg) { in wl_cfg80211_wbtext_weight_config()
11107 MFREE(cfg->osh, bwcfg, sizeof(*bwcfg)); in wl_cfg80211_wbtext_weight_config()