Lines Matching refs:conf
1263 hostapd_get_oper_chwidth(struct hostapd_config *conf) in hostapd_get_oper_chwidth() argument
1266 if (conf->ieee80211be) in hostapd_get_oper_chwidth()
1267 return conf->eht_oper_chwidth; in hostapd_get_oper_chwidth()
1270 if (conf->ieee80211ax) in hostapd_get_oper_chwidth()
1271 return conf->he_oper_chwidth; in hostapd_get_oper_chwidth()
1273 return conf->vht_oper_chwidth; in hostapd_get_oper_chwidth()
1277 hostapd_set_oper_chwidth(struct hostapd_config *conf, in hostapd_set_oper_chwidth() argument
1281 if (conf->ieee80211be) in hostapd_set_oper_chwidth()
1282 conf->eht_oper_chwidth = oper_chwidth; in hostapd_set_oper_chwidth()
1287 if (conf->ieee80211ax) in hostapd_set_oper_chwidth()
1288 conf->he_oper_chwidth = oper_chwidth; in hostapd_set_oper_chwidth()
1290 conf->vht_oper_chwidth = oper_chwidth; in hostapd_set_oper_chwidth()
1294 hostapd_get_oper_centr_freq_seg0_idx(struct hostapd_config *conf) in hostapd_get_oper_centr_freq_seg0_idx() argument
1297 if (conf->ieee80211be) in hostapd_get_oper_centr_freq_seg0_idx()
1298 return conf->eht_oper_centr_freq_seg0_idx; in hostapd_get_oper_centr_freq_seg0_idx()
1301 if (conf->ieee80211ax) in hostapd_get_oper_centr_freq_seg0_idx()
1302 return conf->he_oper_centr_freq_seg0_idx; in hostapd_get_oper_centr_freq_seg0_idx()
1304 return conf->vht_oper_centr_freq_seg0_idx; in hostapd_get_oper_centr_freq_seg0_idx()
1308 hostapd_set_oper_centr_freq_seg0_idx(struct hostapd_config *conf, in hostapd_set_oper_centr_freq_seg0_idx() argument
1312 if (conf->ieee80211be) in hostapd_set_oper_centr_freq_seg0_idx()
1313 conf->eht_oper_centr_freq_seg0_idx = oper_centr_freq_seg0_idx; in hostapd_set_oper_centr_freq_seg0_idx()
1314 if (is_6ghz_op_class(conf->op_class) && in hostapd_set_oper_centr_freq_seg0_idx()
1317 conf->channel > oper_centr_freq_seg0_idx ? 16 : -16; in hostapd_set_oper_centr_freq_seg0_idx()
1320 if (conf->ieee80211ax) in hostapd_set_oper_centr_freq_seg0_idx()
1321 conf->he_oper_centr_freq_seg0_idx = oper_centr_freq_seg0_idx; in hostapd_set_oper_centr_freq_seg0_idx()
1323 conf->vht_oper_centr_freq_seg0_idx = oper_centr_freq_seg0_idx; in hostapd_set_oper_centr_freq_seg0_idx()
1327 hostapd_get_oper_centr_freq_seg1_idx(struct hostapd_config *conf) in hostapd_get_oper_centr_freq_seg1_idx() argument
1330 if (conf->ieee80211ax) in hostapd_get_oper_centr_freq_seg1_idx()
1331 return conf->he_oper_centr_freq_seg1_idx; in hostapd_get_oper_centr_freq_seg1_idx()
1333 return conf->vht_oper_centr_freq_seg1_idx; in hostapd_get_oper_centr_freq_seg1_idx()
1337 hostapd_set_oper_centr_freq_seg1_idx(struct hostapd_config *conf, in hostapd_set_oper_centr_freq_seg1_idx() argument
1341 if (conf->ieee80211ax) in hostapd_set_oper_centr_freq_seg1_idx()
1342 conf->he_oper_centr_freq_seg1_idx = oper_centr_freq_seg1_idx; in hostapd_set_oper_centr_freq_seg1_idx()
1344 conf->vht_oper_centr_freq_seg1_idx = oper_centr_freq_seg1_idx; in hostapd_set_oper_centr_freq_seg1_idx()
1348 hostapd_get_bw320_offset(struct hostapd_config *conf) in hostapd_get_bw320_offset() argument
1351 if (conf->ieee80211be && is_6ghz_op_class(conf->op_class) && in hostapd_get_bw320_offset()
1352 hostapd_get_oper_chwidth(conf) == CONF_OPER_CHWIDTH_320MHZ) in hostapd_get_bw320_offset()
1353 return conf->eht_bw320_offset; in hostapd_get_bw320_offset()
1359 hostapd_set_and_check_bw320_offset(struct hostapd_config *conf, in hostapd_set_and_check_bw320_offset() argument
1363 if (conf->ieee80211be && is_6ghz_op_class(conf->op_class) && in hostapd_set_and_check_bw320_offset()
1364 op_class_to_ch_width(conf->op_class) == CONF_OPER_CHWIDTH_320MHZ) { in hostapd_set_and_check_bw320_offset()
1365 if (conf->channel) { in hostapd_set_and_check_bw320_offset()
1369 u8 seg0 = hostapd_get_oper_centr_freq_seg0_idx(conf); in hostapd_set_and_check_bw320_offset()
1371 conf->eht_bw320_offset = (seg0 - 31) % 64 ? 2 : 1; in hostapd_set_and_check_bw320_offset()
1376 conf->eht_bw320_offset = bw320_offset; in hostapd_set_and_check_bw320_offset()
1379 conf->eht_bw320_offset = 0; in hostapd_set_and_check_bw320_offset()
1392 void hostapd_config_clear_rxkhs(struct hostapd_bss_config *conf);
1393 void hostapd_config_free_bss(struct hostapd_bss_config *conf);
1394 void hostapd_config_free(struct hostapd_config *conf);
1398 const u8 * hostapd_get_psk(const struct hostapd_bss_config *conf,
1401 int hostapd_setup_wpa_psk(struct hostapd_bss_config *conf);
1409 int hostapd_config_check(struct hostapd_config *conf, int full_config);
1412 int hostapd_sae_pw_id_in_use(struct hostapd_bss_config *conf);
1413 bool hostapd_sae_pk_in_use(struct hostapd_bss_config *conf);
1414 bool hostapd_sae_pk_exclusively(struct hostapd_bss_config *conf);
1415 int hostapd_setup_sae_pt(struct hostapd_bss_config *conf);