Lines Matching refs:btcfg
14200 wnm_bss_select_factor_cfg_t *btcfg; in wl_cfg80211_wbtext_table_config() local
14206 btcfg = (wnm_bss_select_factor_cfg_t *)MALLOCZ(cfg->osh, in wl_cfg80211_wbtext_table_config()
14207 (sizeof(*btcfg) + sizeof(*btcfg) * WL_FACTOR_TABLE_MAX_LIMIT)); in wl_cfg80211_wbtext_table_config()
14208 if (unlikely(!btcfg)) { in wl_cfg80211_wbtext_table_config()
14214 btcfg->version = WNM_BSS_SELECT_FACTOR_VERSION; in wl_cfg80211_wbtext_table_config()
14215 btcfg->band = WLC_BAND_AUTO; in wl_cfg80211_wbtext_table_config()
14216 btcfg->type = 0; in wl_cfg80211_wbtext_table_config()
14217 btcfg->count = 0; in wl_cfg80211_wbtext_table_config()
14222 btcfg->type = WNM_BSS_SELECT_TYPE_RSSI; in wl_cfg80211_wbtext_table_config()
14225 btcfg->type = WNM_BSS_SELECT_TYPE_CU; in wl_cfg80211_wbtext_table_config()
14232 if (BCME_BADBAND == wl_android_bandstr_to_fwband(band, &btcfg->band)) { in wl_cfg80211_wbtext_table_config()
14239 if ((err = wldev_iovar_getbuf(ndev, "wnm_bss_select_table", btcfg, in wl_cfg80211_wbtext_table_config()
14240 sizeof(*btcfg), in wl_cfg80211_wbtext_table_config()
14245 memcpy(btcfg, ioctl_buf, sizeof(*btcfg)); in wl_cfg80211_wbtext_table_config()
14246 memcpy(btcfg, ioctl_buf, (btcfg->count+1) * sizeof(*btcfg)); in wl_cfg80211_wbtext_table_config()
14249 "No of entries in table: %d\n", btcfg->count); in wl_cfg80211_wbtext_table_config()
14252 (btcfg->type == WNM_BSS_SELECT_TYPE_RSSI) ? "RSSI" : "CU"); in wl_cfg80211_wbtext_table_config()
14255 for (i = 0; i <= btcfg->count-1; i++) { in wl_cfg80211_wbtext_table_config()
14257 total_len - bytes_written, "%d\t%d\t%d\n", btcfg->params[i].low, in wl_cfg80211_wbtext_table_config()
14258 btcfg->params[i].high, btcfg->params[i].factor); in wl_cfg80211_wbtext_table_config()
14264 memset_s(btcfg->params, len, 0, len); in wl_cfg80211_wbtext_table_config()
14270 btcfg->params[i].low = simple_strtol(data, &data, 10); in wl_cfg80211_wbtext_table_config()
14272 btcfg->params[i].high = simple_strtol(data, &data, 10); in wl_cfg80211_wbtext_table_config()
14274 btcfg->params[i].factor = simple_strtol(data, &data, 10); in wl_cfg80211_wbtext_table_config()
14275 btcfg->count++; in wl_cfg80211_wbtext_table_config()
14286 btcfg_len = sizeof(*btcfg) + ((btcfg->count) * sizeof(*btcfg)); in wl_cfg80211_wbtext_table_config()
14287 if ((err = wldev_iovar_setbuf(ndev, "wnm_bss_select_table", btcfg, btcfg_len, in wl_cfg80211_wbtext_table_config()
14294 if (btcfg) { in wl_cfg80211_wbtext_table_config()
14295 MFREE(cfg->osh, btcfg, in wl_cfg80211_wbtext_table_config()
14296 (sizeof(*btcfg) + sizeof(*btcfg) * WL_FACTOR_TABLE_MAX_LIMIT)); in wl_cfg80211_wbtext_table_config()