Lines Matching refs:wiphy
24 void orinoco_wiphy_init(struct wiphy *wiphy) in orinoco_wiphy_init() argument
26 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_wiphy_init()
28 wiphy->privid = orinoco_wiphy_privid; in orinoco_wiphy_init()
30 set_wiphy_dev(wiphy, priv->dev); in orinoco_wiphy_init()
34 int orinoco_wiphy_register(struct wiphy *wiphy) in orinoco_wiphy_register() argument
36 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_wiphy_register()
40 wiphy->max_scan_ssids = 1; in orinoco_wiphy_register()
42 wiphy->max_scan_ssids = 0; in orinoco_wiphy_register()
44 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); in orinoco_wiphy_register()
50 wiphy->interface_modes |= BIT(NL80211_IFTYPE_ADHOC); in orinoco_wiphy_register()
53 wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR); in orinoco_wiphy_register()
70 wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; in orinoco_wiphy_register()
71 wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in orinoco_wiphy_register()
87 wiphy->cipher_suites = priv->cipher_suites; in orinoco_wiphy_register()
88 wiphy->n_cipher_suites = i; in orinoco_wiphy_register()
90 wiphy->rts_threshold = priv->rts_thresh; 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()
96 return wiphy_register(wiphy); in orinoco_wiphy_register()
99 static int orinoco_change_vif(struct wiphy *wiphy, struct net_device *dev, in orinoco_change_vif() argument
103 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_change_vif()
121 wiphy_warn(wiphy, in orinoco_change_vif()
142 static int orinoco_scan(struct wiphy *wiphy, in orinoco_scan() argument
145 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_scan()
164 static int orinoco_set_monitor_channel(struct wiphy *wiphy, in orinoco_set_monitor_channel() argument
167 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_set_monitor_channel()
203 static int orinoco_set_wiphy_params(struct wiphy *wiphy, u32 changed) in orinoco_set_wiphy_params() argument
205 struct orinoco_private *priv = wiphy_priv(wiphy); in orinoco_set_wiphy_params()
223 if (wiphy->frag_threshold < 0) in orinoco_set_wiphy_params()
233 if (wiphy->frag_threshold < 0) in orinoco_set_wiphy_params()
235 else if ((wiphy->frag_threshold < 257) || in orinoco_set_wiphy_params()
236 (wiphy->frag_threshold > 2347)) in orinoco_set_wiphy_params()
241 frag_value = wiphy->frag_threshold & ~0x1; in orinoco_set_wiphy_params()
255 if (wiphy->rts_threshold < 0) in orinoco_set_wiphy_params()
257 else if (wiphy->rts_threshold > 2347) in orinoco_set_wiphy_params()
260 rts_value = wiphy->rts_threshold; in orinoco_set_wiphy_params()