• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/mac80211/

Lines Matching refs:hw

110 		local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL;
115 local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL;
119 local->hw.conf.flags &= ~IEEE80211_CONF_OFFCHANNEL;
122 if (chan != local->hw.conf.channel ||
123 channel_type != local->hw.conf.channel_type) {
124 local->hw.conf.channel = chan;
125 local->hw.conf.channel_type = channel_type;
129 if (!conf_is_ht(&local->hw.conf)) {
135 local->hw.conf.smps_mode = IEEE80211_SMPS_STATIC;
136 } else if (local->hw.conf.smps_mode != local->smps_mode) {
137 local->hw.conf.smps_mode = local->smps_mode;
151 if (local->hw.conf.power_level != power) {
153 local->hw.conf.power_level = power;
286 void ieee80211_restart_hw(struct ieee80211_hw *hw)
288 struct ieee80211_local *local = hw_to_local(hw);
293 ieee80211_stop_queues_by_reason(hw,
333 if (wdev->wiphy != local->hw.wiphy)
387 /* Ensure 32-byte alignment of our private data and hw private data.
418 local->hw.wiphy = wiphy;
420 local->hw.priv = (char *)local + ALIGN(sizeof(*local), NETDEV_ALIGN);
432 local->hw.queues = 1;
433 local->hw.max_rates = 1;
434 local->hw.conf.long_frame_max_tx_count = wiphy->retry_long;
435 local->hw.conf.short_frame_max_tx_count = wiphy->retry_short;
488 int ieee80211_register_hw(struct ieee80211_hw *hw)
490 struct ieee80211_local *local = hw_to_local(hw);
501 /* keep last -- depends on hw flags! */
508 * that hw.conf.channel is assigned
516 sband = local->hw.wiphy->bands[band];
521 local->hw.conf.channel =
523 local->hw.conf.channel_type = NL80211_CHAN_NO_HT;
538 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP))
539 local->hw.wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN);
542 local->hw.wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR);
544 if (local->hw.flags & IEEE80211_HW_SIGNAL_DBM)
545 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
546 else if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC)
547 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_UNSPEC;
549 WARN((local->hw.flags & IEEE80211_HW_SUPPORTS_UAPSD)
550 && (local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK),
565 local->hw.wiphy->max_scan_ssids = 4;
566 local->hw.wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
576 if (local->hw.wiphy->max_scan_ie_len)
577 local->hw.wiphy->max_scan_ie_len -= local->scan_ies_len;
579 local->hw.wiphy->cipher_suites = cipher_suites;
580 local->hw.wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites);
581 if (!(local->hw.flags & IEEE80211_HW_MFP_CAPABLE))
582 local->hw.wiphy->n_cipher_suites--;
584 result = wiphy_register(local->hw.wiphy);
592 if (hw->queues > IEEE80211_MAX_QUEUES)
593 hw->queues = IEEE80211_MAX_QUEUES;
596 create_singlethread_workqueue(wiphy_name(local->hw.wiphy));
609 local->tx_headroom = max_t(unsigned int , local->hw.extra_tx_headroom,
618 if (local->hw.max_listen_interval == 0)
619 local->hw.max_listen_interval = 5;
621 local->hw.conf.listen_interval = local->hw.max_listen_interval;
632 wiphy_name(local->hw.wiphy), result);
637 hw->rate_control_algorithm);
640 "algorithm\n", wiphy_name(local->hw.wiphy));
645 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION)) {
650 wiphy_name(local->hw.wiphy));
691 wiphy_unregister(local->hw.wiphy);
698 void ieee80211_unregister_hw(struct ieee80211_hw *hw)
700 struct ieee80211_local *local = hw_to_local(hw);
737 wiphy_name(local->hw.wiphy));
742 wiphy_unregister(local->hw.wiphy);
749 void ieee80211_free_hw(struct ieee80211_hw *hw)
751 struct ieee80211_local *local = hw_to_local(hw);
756 wiphy_free(local->hw.wiphy);