Lines Matching refs:wiphy

24 void orinoco_wiphy_init(struct wiphy *wiphy)
26 struct orinoco_private *priv = wiphy_priv(wiphy);
28 wiphy->privid = orinoco_wiphy_privid;
30 set_wiphy_dev(wiphy, priv->dev);
34 int orinoco_wiphy_register(struct wiphy *wiphy)
36 struct orinoco_private *priv = wiphy_priv(wiphy);
40 wiphy->max_scan_ssids = 1;
42 wiphy->max_scan_ssids = 0;
44 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
50 wiphy->interface_modes |= BIT(NL80211_IFTYPE_ADHOC);
53 wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR);
69 wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band;
70 wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
86 wiphy->cipher_suites = priv->cipher_suites;
87 wiphy->n_cipher_suites = i;
89 wiphy->rts_threshold = priv->rts_thresh;
91 wiphy->frag_threshold = priv->frag_thresh + 1;
92 wiphy->retry_short = priv->short_retry_limit;
93 wiphy->retry_long = priv->long_retry_limit;
95 return wiphy_register(wiphy);
98 static int orinoco_change_vif(struct wiphy *wiphy, struct net_device *dev,
102 struct orinoco_private *priv = wiphy_priv(wiphy);
120 wiphy_warn(wiphy,
141 static int orinoco_scan(struct wiphy *wiphy, struct net_device *dev,
144 struct orinoco_private *priv = wiphy_priv(wiphy);
163 static int orinoco_set_channel(struct wiphy *wiphy,
168 struct orinoco_private *priv = wiphy_priv(wiphy);
204 static int orinoco_set_wiphy_params(struct wiphy *wiphy, u32 changed)
206 struct orinoco_private *priv = wiphy_priv(wiphy);
224 if (wiphy->frag_threshold < 0)
234 if (wiphy->frag_threshold < 0)
236 else if ((wiphy->frag_threshold < 257) ||
237 (wiphy->frag_threshold > 2347))
242 frag_value = wiphy->frag_threshold & ~0x1;
256 if (wiphy->rts_threshold < 0)
258 else if (wiphy->rts_threshold > 2347)
261 rts_value = wiphy->rts_threshold;