Lines Matching refs:conf

35 	struct rt2x00intf_conf conf;  in rt2x00lib_config_intf()  local
38 conf.type = type; in rt2x00lib_config_intf()
42 conf.sync = TSF_SYNC_ADHOC; in rt2x00lib_config_intf()
47 conf.sync = TSF_SYNC_AP_NONE; in rt2x00lib_config_intf()
50 conf.sync = TSF_SYNC_INFRA; in rt2x00lib_config_intf()
53 conf.sync = TSF_SYNC_NONE; in rt2x00lib_config_intf()
63 memset(conf.mac, 0, sizeof(conf.mac)); in rt2x00lib_config_intf()
65 memcpy(conf.mac, mac, ETH_ALEN); in rt2x00lib_config_intf()
67 memset(conf.bssid, 0, sizeof(conf.bssid)); in rt2x00lib_config_intf()
69 memcpy(conf.bssid, bssid, ETH_ALEN); in rt2x00lib_config_intf()
77 rt2x00dev->ops->lib->config_intf(rt2x00dev, intf, &conf, flags); in rt2x00lib_config_intf()
176 struct ieee80211_conf *conf) in rt2x00ht_center_channel() argument
185 center_channel = spec->channels[conf->chandef.chan->hw_value].channel; in rt2x00ht_center_channel()
190 if (conf_is_ht40_plus(conf)) in rt2x00ht_center_channel()
192 else if (conf_is_ht40_minus(conf)) in rt2x00ht_center_channel()
200 return conf->chandef.chan->hw_value; in rt2x00ht_center_channel()
204 struct ieee80211_conf *conf, in rt2x00lib_config() argument
215 libconf.conf = conf; in rt2x00lib_config()
218 if (!conf_is_ht(conf)) in rt2x00lib_config()
223 if (conf_is_ht40(conf)) { in rt2x00lib_config()
225 hw_value = rt2x00ht_center_channel(rt2x00dev, conf); in rt2x00lib_config()
228 hw_value = conf->chandef.chan->hw_value; in rt2x00lib_config()
262 (conf->flags & IEEE80211_CONF_PS)) { in rt2x00lib_config()
269 autowake_timeout = (conf->ps_dtim_period * beacon_int) - beacon_diff; in rt2x00lib_config()
275 if (conf->flags & IEEE80211_CONF_PS) in rt2x00lib_config()
280 rt2x00dev->curr_band = conf->chandef.chan->band; in rt2x00lib_config()
281 rt2x00dev->curr_freq = conf->chandef.chan->center_freq; in rt2x00lib_config()
282 rt2x00dev->tx_power = conf->power_level; in rt2x00lib_config()
283 rt2x00dev->short_retry = conf->short_frame_max_tx_count; in rt2x00lib_config()
284 rt2x00dev->long_retry = conf->long_frame_max_tx_count; in rt2x00lib_config()