Lines Matching refs:bs
43 struct ath9k_beacon_state *bs) in ath9k_cmn_beacon_config_sta() argument
56 memset(bs, 0, sizeof(*bs)); in ath9k_cmn_beacon_config_sta()
72 bs->bs_intval = TU_TO_USEC(conf->intval); in ath9k_cmn_beacon_config_sta()
73 bs->bs_dtimperiod = conf->dtim_period * bs->bs_intval; in ath9k_cmn_beacon_config_sta()
74 bs->bs_nexttbtt = conf->nexttbtt; in ath9k_cmn_beacon_config_sta()
75 bs->bs_nextdtim = conf->nexttbtt; in ath9k_cmn_beacon_config_sta()
77 bs->bs_nextdtim = ath9k_get_next_tbtt(ah, tsf, dtim_intval); in ath9k_cmn_beacon_config_sta()
85 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); in ath9k_cmn_beacon_config_sta()
86 if (bs->bs_bmissthreshold > 15) in ath9k_cmn_beacon_config_sta()
87 bs->bs_bmissthreshold = 15; in ath9k_cmn_beacon_config_sta()
88 else if (bs->bs_bmissthreshold <= 0) in ath9k_cmn_beacon_config_sta()
89 bs->bs_bmissthreshold = 1; in ath9k_cmn_beacon_config_sta()
100 bs->bs_sleepduration = TU_TO_USEC(roundup(IEEE80211_MS_TO_TU(100), in ath9k_cmn_beacon_config_sta()
102 if (bs->bs_sleepduration > bs->bs_dtimperiod) in ath9k_cmn_beacon_config_sta()
103 bs->bs_sleepduration = bs->bs_dtimperiod; in ath9k_cmn_beacon_config_sta()
106 bs->bs_tsfoor_threshold = ATH9K_TSFOOR_THRESHOLD; in ath9k_cmn_beacon_config_sta()
109 bs->bs_bmissthreshold, bs->bs_sleepduration); in ath9k_cmn_beacon_config_sta()