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

Lines Matching refs:hw

38 MODULE_PARM_DESC(fake_hw_scan, "Install fake (no-op) hw-scan handler");
282 struct ieee80211_hw *hw;
332 static void mac80211_hwsim_monitor_rx(struct ieee80211_hw *hw,
335 struct mac80211_hwsim_data *data = hw->priv;
340 struct ieee80211_rate *txrate = ieee80211_get_tx_rate(hw, info);
376 static void mac80211_hwsim_monitor_ack(struct ieee80211_hw *hw, const u8 *addr)
378 struct mac80211_hwsim_data *data = hw->priv;
435 memcmp(data->hw->wiphy->perm_addr, skb->data + 4,
466 if (memcmp(addr, data->hw->wiphy->perm_addr, ETH_ALEN) == 0)
471 ieee80211_iterate_active_interfaces_atomic(data->hw,
479 static bool mac80211_hwsim_tx_frame(struct ieee80211_hw *hw,
482 struct mac80211_hwsim_data *data = hw->priv, *data2;
489 wiphy_debug(hw->wiphy, "Trying to TX when idle - reject\n");
533 ieee80211_rx_irqsafe(data2->hw, nskb);
541 static int mac80211_hwsim_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
546 mac80211_hwsim_monitor_rx(hw, skb);
554 ack = mac80211_hwsim_tx_frame(hw, skb);
557 mac80211_hwsim_monitor_ack(hw, hdr->addr2);
570 ieee80211_tx_status_irqsafe(hw, skb);
575 static int mac80211_hwsim_start(struct ieee80211_hw *hw)
577 struct mac80211_hwsim_data *data = hw->priv;
578 wiphy_debug(hw->wiphy, "%s\n", __func__);
584 static void mac80211_hwsim_stop(struct ieee80211_hw *hw)
586 struct mac80211_hwsim_data *data = hw->priv;
589 wiphy_debug(hw->wiphy, "%s\n", __func__);
593 static int mac80211_hwsim_add_interface(struct ieee80211_hw *hw,
596 wiphy_debug(hw->wiphy, "%s (type=%d mac_addr=%pM)\n",
604 struct ieee80211_hw *hw, struct ieee80211_vif *vif)
606 wiphy_debug(hw->wiphy, "%s (type=%d mac_addr=%pM)\n",
616 struct ieee80211_hw *hw = arg;
626 skb = ieee80211_beacon_get(hw, vif);
631 mac80211_hwsim_monitor_rx(hw, skb);
632 mac80211_hwsim_tx_frame(hw, skb);
639 struct ieee80211_hw *hw = (struct ieee80211_hw *) arg;
640 struct mac80211_hwsim_data *data = hw->priv;
646 hw, mac80211_hwsim_beacon_tx, hw);
659 static int mac80211_hwsim_config(struct ieee80211_hw *hw, u32 changed)
661 struct mac80211_hwsim_data *data = hw->priv;
662 struct ieee80211_conf *conf = &hw->conf;
670 wiphy_debug(hw->wiphy,
691 static void mac80211_hwsim_configure_filter(struct ieee80211_hw *hw,
695 struct mac80211_hwsim_data *data = hw->priv;
697 wiphy_debug(hw->wiphy, "%s\n", __func__);
708 static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw,
714 struct mac80211_hwsim_data *data = hw->priv;
718 wiphy_debug(hw->wiphy, "%s(changed=0x%x)\n", __func__, changed);
721 wiphy_debug(hw->wiphy, "%s: BSSID changed: %pM\n",
727 wiphy_debug(hw->wiphy, " ASSOC: assoc=%d aid=%d\n",
734 wiphy_debug(hw->wiphy, " BCNINT: %d\n", info->beacon_int);
744 wiphy_debug(hw->wiphy, " ERP_CTS_PROT: %d\n",
749 wiphy_debug(hw->wiphy, " ERP_PREAMBLE: %d\n",
754 wiphy_debug(hw->wiphy, " ERP_SLOT: %d\n", info->use_short_slot);
758 wiphy_debug(hw->wiphy, " HT: op_mode=0x%x, chantype=%s\n",
764 wiphy_debug(hw->wiphy, " BASIC_RATES: 0x%llx\n",
769 static int mac80211_hwsim_sta_add(struct ieee80211_hw *hw,
779 static int mac80211_hwsim_sta_remove(struct ieee80211_hw *hw,
789 static void mac80211_hwsim_sta_notify(struct ieee80211_hw *hw,
807 static int mac80211_hwsim_set_tim(struct ieee80211_hw *hw,
816 struct ieee80211_hw *hw, u16 queue,
819 wiphy_debug(hw->wiphy,
828 struct ieee80211_hw *hw, int idx,
831 struct ieee80211_conf *conf = &hw->conf;
833 wiphy_debug(hw->wiphy, "%s (idx=%d)\n", __func__, idx);
882 static int mac80211_hwsim_testmode_cmd(struct ieee80211_hw *hw,
885 struct mac80211_hwsim_data *hwsim = hw->priv;
905 skb = cfg80211_testmode_alloc_reply_skb(hw->wiphy,
921 static int mac80211_hwsim_ampdu_action(struct ieee80211_hw *hw,
945 static void mac80211_hwsim_flush(struct ieee80211_hw *hw, bool drop)
957 struct ieee80211_hw *hw;
965 ieee80211_scan_completed(hsd->hw, false);
969 static int mac80211_hwsim_hw_scan(struct ieee80211_hw *hw,
979 hsd->hw = hw;
987 ieee80211_queue_delayed_work(hw, &hsd->w, 2 * HZ);
992 static void mac80211_hwsim_sw_scan(struct ieee80211_hw *hw)
994 struct mac80211_hwsim_data *hwsim = hw->priv;
1010 static void mac80211_hwsim_sw_scan_complete(struct ieee80211_hw *hw)
1012 struct mac80211_hwsim_data *hwsim = hw->priv;
1062 ieee80211_unregister_hw(data->hw);
1064 ieee80211_free_hw(data->hw);
1103 wiphy_debug(data->hw->wiphy,
1117 if (!mac80211_hwsim_tx_frame(data->hw, skb))
1133 wiphy_debug(data->hw->wiphy,
1148 if (!mac80211_hwsim_tx_frame(data->hw, skb))
1190 ieee80211_iterate_active_interfaces(data->hw,
1194 ieee80211_iterate_active_interfaces(data->hw,
1198 ieee80211_iterate_active_interfaces(data->hw,
1233 struct ieee80211_hw *hw;
1258 hw = ieee80211_alloc_hw(sizeof(*data), &mac80211_hwsim_ops);
1259 if (!hw) {
1265 data = hw->priv;
1266 data->hw = hw;
1268 data->dev = device_create(hwsim_class, NULL, 0, hw,
1279 SET_IEEE80211_DEV(hw, data->dev);
1285 hw->wiphy->n_addresses = 2;
1286 hw->wiphy->addresses = data->addresses;
1289 hw->wiphy->max_scan_ssids = 255;
1290 hw->wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
1293 hw->channel_change_time = 1;
1294 hw->queues = 4;
1295 hw->wiphy->interface_modes =
1300 hw->flags = IEEE80211_HW_MFP_CAPABLE |
1307 hw->vif_data_size = sizeof(struct hwsim_vif_priv);
1308 hw->sta_data_size = sizeof(struct hwsim_sta_priv);
1350 hw->wiphy->bands[band] = sband;
1369 hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY;
1370 wiphy_apply_custom_regulatory(hw->wiphy,
1375 hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY;
1376 wiphy_apply_custom_regulatory(hw->wiphy,
1381 hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY;
1382 wiphy_apply_custom_regulatory(hw->wiphy,
1385 hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY;
1386 wiphy_apply_custom_regulatory(hw->wiphy,
1391 hw->wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY;
1396 hw->wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY;
1400 hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY;
1401 wiphy_apply_custom_regulatory(hw->wiphy,
1404 hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY;
1405 wiphy_apply_custom_regulatory(hw->wiphy,
1408 hw->wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY;
1417 err = ieee80211_register_hw(hw);
1431 regulatory_hint(hw->wiphy, hwsim_alpha2s[0]);
1435 regulatory_hint(hw->wiphy, hwsim_alpha2s[0]);
1439 regulatory_hint(hw->wiphy, hwsim_alpha2s[i]);
1450 regulatory_hint(hw->wiphy, hwsim_alpha2s[0]);
1454 regulatory_hint(hw->wiphy, hwsim_alpha2s[0]);
1456 regulatory_hint(hw->wiphy, hwsim_alpha2s[1]);
1460 regulatory_hint(hw->wiphy, hwsim_alpha2s[0]);
1462 regulatory_hint(hw->wiphy, hwsim_alpha2s[1]);
1464 regulatory_hint(hw->wiphy, hwsim_alpha2s[2]);
1470 wiphy_debug(hw->wiphy, "hwaddr %pm registered\n",
1471 hw->wiphy->perm_addr);
1474 hw->wiphy->debugfsdir);
1483 (unsigned long) hw);
1516 ieee80211_free_hw(hw);