Lines Matching refs:conf
24 struct rt2x00intf_conf conf; in rt2x00lib_config_intf() local
27 conf.type = type; in rt2x00lib_config_intf()
31 conf.sync = TSF_SYNC_ADHOC; in rt2x00lib_config_intf()
36 conf.sync = TSF_SYNC_AP_NONE; in rt2x00lib_config_intf()
39 conf.sync = TSF_SYNC_INFRA; in rt2x00lib_config_intf()
42 conf.sync = TSF_SYNC_NONE; in rt2x00lib_config_intf()
52 memset(conf.mac, 0, sizeof(conf.mac)); in rt2x00lib_config_intf()
54 memcpy(conf.mac, mac, ETH_ALEN); in rt2x00lib_config_intf()
56 memset(conf.bssid, 0, sizeof(conf.bssid)); in rt2x00lib_config_intf()
58 memcpy(conf.bssid, bssid, ETH_ALEN); in rt2x00lib_config_intf()
66 rt2x00dev->ops->lib->config_intf(rt2x00dev, intf, &conf, flags); in rt2x00lib_config_intf()
165 struct ieee80211_conf *conf) in rt2x00ht_center_channel() argument
174 center_channel = spec->channels[conf->chandef.chan->hw_value].channel; in rt2x00ht_center_channel()
179 if (conf_is_ht40_plus(conf)) in rt2x00ht_center_channel()
181 else if (conf_is_ht40_minus(conf)) in rt2x00ht_center_channel()
189 return conf->chandef.chan->hw_value; in rt2x00ht_center_channel()
193 struct ieee80211_conf *conf, in rt2x00lib_config() argument
204 libconf.conf = conf; in rt2x00lib_config()
207 if (!conf_is_ht(conf)) in rt2x00lib_config()
212 if (conf_is_ht40(conf)) { in rt2x00lib_config()
214 hw_value = rt2x00ht_center_channel(rt2x00dev, conf); in rt2x00lib_config()
217 hw_value = conf->chandef.chan->hw_value; in rt2x00lib_config()
241 if (conf->flags & IEEE80211_CONF_PS) in rt2x00lib_config()
246 if (conf->flags & IEEE80211_CONF_MONITOR) in rt2x00lib_config()
251 rt2x00dev->curr_band = conf->chandef.chan->band; in rt2x00lib_config()
252 rt2x00dev->curr_freq = conf->chandef.chan->center_freq; in rt2x00lib_config()
253 rt2x00dev->tx_power = conf->power_level; in rt2x00lib_config()
254 rt2x00dev->short_retry = conf->short_frame_max_tx_count; in rt2x00lib_config()
255 rt2x00dev->long_retry = conf->long_frame_max_tx_count; in rt2x00lib_config()
267 (conf->flags & IEEE80211_CONF_PS)) { in rt2x00lib_config()
274 autowake_timeout = (conf->ps_dtim_period * beacon_int) - beacon_diff; in rt2x00lib_config()