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()
35 conf.sync = TSF_SYNC_AP_NONE; in rt2x00lib_config_intf()
38 conf.sync = TSF_SYNC_INFRA; in rt2x00lib_config_intf()
41 conf.sync = TSF_SYNC_NONE; in rt2x00lib_config_intf()
51 memset(conf.mac, 0, sizeof(conf.mac)); in rt2x00lib_config_intf()
53 memcpy(conf.mac, mac, ETH_ALEN); in rt2x00lib_config_intf()
55 memset(conf.bssid, 0, sizeof(conf.bssid)); in rt2x00lib_config_intf()
57 memcpy(conf.bssid, bssid, ETH_ALEN); in rt2x00lib_config_intf()
65 rt2x00dev->ops->lib->config_intf(rt2x00dev, intf, &conf, flags); in rt2x00lib_config_intf()
166 struct ieee80211_conf *conf) in rt2x00ht_center_channel() argument
175 center_channel = spec->channels[conf->chandef.chan->hw_value].channel; in rt2x00ht_center_channel()
180 if (conf_is_ht40_plus(conf)) in rt2x00ht_center_channel()
182 else if (conf_is_ht40_minus(conf)) in rt2x00ht_center_channel()
190 return conf->chandef.chan->hw_value; in rt2x00ht_center_channel()
194 struct ieee80211_conf *conf, in rt2x00lib_config() argument
205 libconf.conf = conf; in rt2x00lib_config()
208 if (!conf_is_ht(conf)) in rt2x00lib_config()
213 if (conf_is_ht40(conf)) { in rt2x00lib_config()
215 hw_value = rt2x00ht_center_channel(rt2x00dev, conf); in rt2x00lib_config()
218 hw_value = conf->chandef.chan->hw_value; in rt2x00lib_config()
242 if (conf->flags & IEEE80211_CONF_PS) in rt2x00lib_config()
247 if (conf->flags & IEEE80211_CONF_MONITOR) in rt2x00lib_config()
252 rt2x00dev->curr_band = conf->chandef.chan->band; in rt2x00lib_config()
253 rt2x00dev->curr_freq = conf->chandef.chan->center_freq; in rt2x00lib_config()
254 rt2x00dev->tx_power = conf->power_level; in rt2x00lib_config()
255 rt2x00dev->short_retry = conf->short_frame_max_tx_count; in rt2x00lib_config()
256 rt2x00dev->long_retry = conf->long_frame_max_tx_count; in rt2x00lib_config()
268 (conf->flags & IEEE80211_CONF_PS)) { in rt2x00lib_config()
275 autowake_timeout = (conf->ps_dtim_period * beacon_int) - beacon_diff; in rt2x00lib_config()