Lines Matching refs:bs
57 struct ath9k_beacon_state *bs) in ath9k_cmn_beacon_config_sta() argument
70 memset(bs, 0, sizeof(*bs)); in ath9k_cmn_beacon_config_sta()
86 bs->bs_intval = TU_TO_USEC(conf->intval); in ath9k_cmn_beacon_config_sta()
87 bs->bs_dtimperiod = conf->dtim_period * bs->bs_intval; in ath9k_cmn_beacon_config_sta()
88 bs->bs_nexttbtt = conf->nexttbtt; in ath9k_cmn_beacon_config_sta()
89 bs->bs_nextdtim = conf->nexttbtt; in ath9k_cmn_beacon_config_sta()
91 bs->bs_nextdtim = ath9k_get_next_tbtt(ah, tsf, dtim_intval); in ath9k_cmn_beacon_config_sta()
99 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); in ath9k_cmn_beacon_config_sta()
100 if (bs->bs_bmissthreshold > 15) in ath9k_cmn_beacon_config_sta()
101 bs->bs_bmissthreshold = 15; in ath9k_cmn_beacon_config_sta()
102 else if (bs->bs_bmissthreshold <= 0) in ath9k_cmn_beacon_config_sta()
103 bs->bs_bmissthreshold = 1; in ath9k_cmn_beacon_config_sta()
114 bs->bs_sleepduration = TU_TO_USEC(roundup(IEEE80211_MS_TO_TU(100), in ath9k_cmn_beacon_config_sta()
116 if (bs->bs_sleepduration > bs->bs_dtimperiod) in ath9k_cmn_beacon_config_sta()
117 bs->bs_sleepduration = bs->bs_dtimperiod; in ath9k_cmn_beacon_config_sta()
120 bs->bs_tsfoor_threshold = ATH9K_TSFOOR_THRESHOLD; in ath9k_cmn_beacon_config_sta()
123 bs->bs_bmissthreshold, bs->bs_sleepduration); in ath9k_cmn_beacon_config_sta()