Lines Matching refs:txpwr
230 struct brcms_cm_info *wlc_cm, struct txpwr_limits *txpwr, in brcms_c_channel_min_txpower_limits_with_local_constraint() argument
237 txpwr->cck[j] = min(txpwr->cck[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
241 txpwr->ofdm[j] = min(txpwr->ofdm[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
245 txpwr->ofdm_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
246 min(txpwr->ofdm_cdd[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
250 txpwr->ofdm_40_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
251 min(txpwr->ofdm_40_siso[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
255 txpwr->ofdm_40_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
256 min(txpwr->ofdm_40_cdd[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
260 txpwr->mcs_20_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
261 min(txpwr->mcs_20_siso[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
265 txpwr->mcs_20_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
266 min(txpwr->mcs_20_cdd[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
270 txpwr->mcs_20_stbc[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
271 min(txpwr->mcs_20_stbc[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
275 txpwr->mcs_20_mimo[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
276 min(txpwr->mcs_20_mimo[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
280 txpwr->mcs_40_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
281 min(txpwr->mcs_40_siso[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
285 txpwr->mcs_40_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
286 min(txpwr->mcs_40_cdd[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
290 txpwr->mcs_40_stbc[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
291 min(txpwr->mcs_40_stbc[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
295 txpwr->mcs_40_mimo[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
296 min(txpwr->mcs_40_mimo[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
299 txpwr->mcs32 = min(txpwr->mcs32, local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
378 struct txpwr_limits txpwr; in brcms_c_channel_set_chanspec() local
380 brcms_c_channel_reg_limits(wlc_cm, chanspec, &txpwr); in brcms_c_channel_set_chanspec()
383 wlc_cm, &txpwr, local_constraint_qdbm in brcms_c_channel_set_chanspec()
394 &txpwr); in brcms_c_channel_set_chanspec()
399 struct txpwr_limits *txpwr) in brcms_c_channel_reg_limits() argument
415 memset(txpwr, 0, sizeof(struct txpwr_limits)); in brcms_c_channel_reg_limits()
440 txpwr->cck[i] = (u8) maxpwr; in brcms_c_channel_reg_limits()
444 txpwr->ofdm[i] = (u8) maxpwr; in brcms_c_channel_reg_limits()
453 txpwr->ofdm_40_siso[i] = 0; in brcms_c_channel_reg_limits()
455 txpwr->ofdm_cdd[i] = (u8) maxpwr; in brcms_c_channel_reg_limits()
457 txpwr->ofdm_40_cdd[i] = 0; in brcms_c_channel_reg_limits()
484 txpwr->mcs_20_siso[i] = txpwr->ofdm[i]; in brcms_c_channel_reg_limits()
485 txpwr->mcs_40_siso[i] = 0; in brcms_c_channel_reg_limits()
490 txpwr->mcs_20_cdd[i] = (u8) maxpwr20; in brcms_c_channel_reg_limits()
491 txpwr->mcs_40_cdd[i] = (u8) maxpwr40; in brcms_c_channel_reg_limits()
506 txpwr->mcs_20_siso[i] = (u8) maxpwr20; in brcms_c_channel_reg_limits()
507 txpwr->mcs_40_siso[i] = (u8) maxpwr40; in brcms_c_channel_reg_limits()
513 txpwr->mcs_20_stbc[i] = 0; in brcms_c_channel_reg_limits()
514 txpwr->mcs_40_stbc[i] = 0; in brcms_c_channel_reg_limits()
519 txpwr->mcs_20_mimo[i] = (u8) maxpwr20; in brcms_c_channel_reg_limits()
520 txpwr->mcs_40_mimo[i] = (u8) maxpwr40; in brcms_c_channel_reg_limits()
524 txpwr->mcs32 = (u8) maxpwr40; in brcms_c_channel_reg_limits()
527 if (txpwr->ofdm_40_cdd[i] == 0) in brcms_c_channel_reg_limits()
528 txpwr->ofdm_40_cdd[i] = txpwr->mcs_40_cdd[j]; in brcms_c_channel_reg_limits()
531 if (txpwr->ofdm_40_cdd[i] == 0) in brcms_c_channel_reg_limits()
532 txpwr->ofdm_40_cdd[i] = txpwr->mcs_40_cdd[j]; in brcms_c_channel_reg_limits()
541 if (txpwr->mcs_40_siso[i] == 0) in brcms_c_channel_reg_limits()
542 txpwr->mcs_40_siso[i] = txpwr->mcs_40_cdd[i]; in brcms_c_channel_reg_limits()
546 if (txpwr->ofdm_40_siso[i] == 0) in brcms_c_channel_reg_limits()
547 txpwr->ofdm_40_siso[i] = txpwr->mcs_40_siso[j]; in brcms_c_channel_reg_limits()
550 if (txpwr->ofdm_40_siso[i] == 0) in brcms_c_channel_reg_limits()
551 txpwr->ofdm_40_siso[i] = txpwr->mcs_40_siso[j]; in brcms_c_channel_reg_limits()
560 if (txpwr->mcs_20_stbc[i] == 0) in brcms_c_channel_reg_limits()
561 txpwr->mcs_20_stbc[i] = txpwr->mcs_20_cdd[i]; in brcms_c_channel_reg_limits()
563 if (txpwr->mcs_40_stbc[i] == 0) in brcms_c_channel_reg_limits()
564 txpwr->mcs_40_stbc[i] = txpwr->mcs_40_cdd[i]; in brcms_c_channel_reg_limits()