Lines Matching refs:priv
26 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_wiphy_init() local
30 set_wiphy_dev(wiphy, priv->dev); in orinoco_wiphy_init()
36 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_wiphy_register() local
39 if (priv->firmware_type == FIRMWARE_TYPE_AGERE) in orinoco_wiphy_register()
49 if (priv->has_ibss) in orinoco_wiphy_register()
52 if (!priv->broken_monitor || force_monitor) in orinoco_wiphy_register()
55 priv->band.bitrates = orinoco_rates; in orinoco_wiphy_register()
56 priv->band.n_bitrates = ARRAY_SIZE(orinoco_rates); in orinoco_wiphy_register()
60 if (priv->channel_mask & (1 << i)) { in orinoco_wiphy_register()
61 priv->channels[i].center_freq = in orinoco_wiphy_register()
67 priv->band.channels = priv->channels; in orinoco_wiphy_register()
68 priv->band.n_channels = channels; in orinoco_wiphy_register()
70 wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in orinoco_wiphy_register()
74 if (priv->has_wep) { in orinoco_wiphy_register()
75 priv->cipher_suites[i] = WLAN_CIPHER_SUITE_WEP40; in orinoco_wiphy_register()
78 if (priv->has_big_wep) { in orinoco_wiphy_register()
79 priv->cipher_suites[i] = WLAN_CIPHER_SUITE_WEP104; in orinoco_wiphy_register()
83 if (priv->has_wpa) { in orinoco_wiphy_register()
84 priv->cipher_suites[i] = WLAN_CIPHER_SUITE_TKIP; in orinoco_wiphy_register()
87 wiphy->cipher_suites = priv->cipher_suites; in orinoco_wiphy_register()
90 wiphy->rts_threshold = priv->rts_thresh; in orinoco_wiphy_register()
91 if (!priv->has_mwo) in orinoco_wiphy_register()
92 wiphy->frag_threshold = priv->frag_thresh + 1; in orinoco_wiphy_register()
93 wiphy->retry_short = priv->short_retry_limit; in orinoco_wiphy_register()
94 wiphy->retry_long = priv->long_retry_limit; in orinoco_wiphy_register()
103 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_change_vif() local
107 if (orinoco_lock(priv, &lock) != 0) in orinoco_change_vif()
112 if (!priv->has_ibss && !priv->has_port3) in orinoco_change_vif()
120 if (priv->broken_monitor && !force_monitor) { in orinoco_change_vif()
132 priv->iw_mode = type; in orinoco_change_vif()
133 set_port_type(priv); in orinoco_change_vif()
134 err = orinoco_commit(priv); in orinoco_change_vif()
137 orinoco_unlock(priv, &lock); in orinoco_change_vif()
145 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_scan() local
151 if (priv->scan_request && priv->scan_request != request) in orinoco_scan()
154 priv->scan_request = request; in orinoco_scan()
156 err = orinoco_hw_trigger_scan(priv, request->ssids); in orinoco_scan()
159 priv->scan_request = NULL; in orinoco_scan()
167 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_set_monitor_channel() local
184 !(priv->channel_mask & (1 << (channel - 1)))) in orinoco_set_monitor_channel()
187 if (orinoco_lock(priv, &flags) != 0) in orinoco_set_monitor_channel()
190 priv->channel = channel; in orinoco_set_monitor_channel()
191 if (priv->iw_mode == NL80211_IFTYPE_MONITOR) { in orinoco_set_monitor_channel()
193 struct hermes *hw = &priv->hw; in orinoco_set_monitor_channel()
198 orinoco_unlock(priv, &flags); in orinoco_set_monitor_channel()
205 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_set_wiphy_params() local
222 if (priv->has_mwo) { in orinoco_set_wiphy_params()
229 priv->ndev->name); in orinoco_set_wiphy_params()
266 if (orinoco_lock(priv, &flags) != 0) in orinoco_set_wiphy_params()
270 if (priv->has_mwo) in orinoco_set_wiphy_params()
271 priv->mwo_robust = frag_value; in orinoco_set_wiphy_params()
273 priv->frag_thresh = frag_value; in orinoco_set_wiphy_params()
276 priv->rts_thresh = rts_value; in orinoco_set_wiphy_params()
278 err = orinoco_commit(priv); in orinoco_set_wiphy_params()
280 orinoco_unlock(priv, &flags); in orinoco_set_wiphy_params()