mac80211: create mac80211_ prefix
Subsystems (3)
cover mac80211: create mac80211_ prefix
It has always annoyed me that mac80211 uses ieee80211_ prefix. For some time already I have been planning to try to do something about it and finally I started it. Here's my first shot at it.
In this patchset I first fix some issues I found from the drivers, then create mac80211-compat.h to make the transition as smooth as possible and then start changing mac80211 itself.
I now changed only parts of mac80211_i.h, I anticipate there will be still three or four patchsets before mac80211 has been converted. Once that is done I'm planning to start converting the drivers, one at a time. Unless driver maintainers beat me to it, of course. I'm hoping that the conversion would be fast enough so that mac80211-compat.h would not be included in any of the official linux releases.
But what do people think? Is this worth the effort?
Or have I drank too much coke and totally lost my mind? ;)
---
Kalle Valo (27):
iwlegacy: fix stop/wake queue hacks
iwlwifi: fix stop/wake queue hacks
zd1211rw: include mac80211.h from zd_chip.h
rtlwifi: include mac80211.h from core.h
mac80211: switch mac80211.h to use mac80211 prefix
mac80211: rename ieee80211_i.h to mac80211_i.h
mac80211: rename ieee80211_local to mac80211_local
mac80211: rename ieee80211_fragment_entry to mac80211_fragment_entry
mac80211: rename ieee80211_bss to mac80211_bss
mac80211: rename ieee80211_tx_data to mac80211_tx_data
mac80211: rename ieee80211_packet_rx_flags to mac80211_packet_rx_flags
mac80211: rename ieee80211_rx_flags to mac80211_i_rx_flags
mac80211: rename ieee80211_rx_data to mac80211_rx_data
mac80211: rename ieee80211_if_ap to mac80211_if_ap
mac80211: change ieee80211_if_wds and _vlan to use mac80211 prefix
mac80211: rename ieee80211_work_type to mac80211_work_type
mac80211: rename ieee80211_work to mac80211_work
mac80211: rename ieee80211_sta_flags to mac80211_sta_flags
mac80211: rename ieee80211_if_managed to mac80211_if_managed
mac80211: rename ieee80211_if_ibss to mac80211_if_ibss
mac80211: rename ieee80211_if_mesh to mac80211_if_mesh
mac80211: rename ieee80211_sub_if_data_flags to mac80211_sub_if_data_flags
mac80211: rename ieee80211_sdata_state_bits to mac80211_sdata_state_bits
mac80211: ieee80211_sub_if_data to mac80211_sub_if_data
mac80211: use mac80211 prefix with rx and tx msg flags
mac80211: change queue stop reasons to use mac80211 prefix
mac80211: use mac80211_hwdrivers/net/wireless/iwlegacy/iwl-helpers.h | 9 drivers/net/wireless/iwlwifi/iwl-helpers.h | 9 drivers/net/wireless/rtlwifi/core.h | 2 drivers/net/wireless/zd1211rw/zd_chip.h | 2 include/net/mac80211-compat.h | 273 +++++ include/net/mac80211.h | 1428 ++++++++++++++------------- net/mac80211/agg-rx.c | 10 net/mac80211/agg-tx.c | 60 + net/mac80211/cfg.c | 176 ++- net/mac80211/chan.c | 18 net/mac80211/debugfs.c | 32 - net/mac80211/debugfs.h | 4 net/mac80211/debugfs_key.c | 8 net/mac80211/debugfs_key.h | 12 net/mac80211/debugfs_netdev.c | 56 + net/mac80211/debugfs_netdev.h | 12 net/mac80211/debugfs_sta.c | 2 net/mac80211/driver-ops.h | 122 +- net/mac80211/driver-trace.h | 172 ++- net/mac80211/event.c | 4 net/mac80211/ht.c | 18 net/mac80211/ibss.c | 94 +- net/mac80211/ieee80211_i.h | 1409 --------------------------- net/mac80211/iface.c | 106 +- net/mac80211/key.c | 32 - net/mac80211/key.h | 22 net/mac80211/led.c | 44 - net/mac80211/led.h | 38 - net/mac80211/mac80211_i.h | 1409 +++++++++++++++++++++++++++ net/mac80211/main.c | 80 +- net/mac80211/mesh.c | 92 +- net/mac80211/mesh.h | 86 +- net/mac80211/mesh_hwmp.c | 48 - net/mac80211/mesh_pathtbl.c | 34 - net/mac80211/mesh_plink.c | 32 - net/mac80211/mlme.c | 426 ++++---- net/mac80211/offchannel.c | 44 - net/mac80211/pm.c | 12 net/mac80211/rate.c | 10 net/mac80211/rate.h | 16 net/mac80211/rc80211_minstrel.c | 8 net/mac80211/rc80211_minstrel.h | 2 net/mac80211/rc80211_minstrel_ht.c | 6 net/mac80211/rc80211_pid_algo.c | 2 net/mac80211/rx.c | 250 ++--- net/mac80211/scan.c | 86 +- net/mac80211/spectmgmt.c | 8 net/mac80211/sta_info.c | 88 +- net/mac80211/sta_info.h | 28 - net/mac80211/status.c | 26 net/mac80211/tkip.c | 4 net/mac80211/tx.c | 154 +-- net/mac80211/util.c | 172 ++- net/mac80211/wep.c | 22 net/mac80211/wep.h | 12 net/mac80211/wme.c | 10 net/mac80211/wme.h | 8 net/mac80211/work.c | 146 +-- net/mac80211/wpa.c | 22 net/mac80211/wpa.h | 18 60 files changed, 3916 insertions(+), 3619 deletions(-) create mode 100644 include/net/mac80211-compat.h delete mode 100644 net/mac80211/ieee80211_i.h create mode 100644 net/mac80211/mac80211_i.h
RFC PATCH 1/27 iwlegacy: fix stop/wake queue hacks
The hacks break once mac80211-compat.h is taken into use. Fix it by adding an ifdef check.
--- drivers/net/wireless/iwlegacy/iwl-helpers.h | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
drivers/net/wireless/iwlegacy/iwl-helpers.h +9 -0
@@ -132,7 +132,16 @@ static inline void iwl_legacy_stop_queue(struct iwl_priv *priv,ieee80211_stop_queue (priv->hw, ac); } +#ifdef ieee80211_stop_queue +#undef ieee80211_stop_queue +#endif +#define ieee80211_stop_queue DO_NOT_USE_ieee80211_stop_queue + +#ifdef ieee80211_wake_queue +#undef ieee80211_wake_queue +#endif +#define ieee80211_wake_queue DO_NOT_USE_ieee80211_wake_queuestatic inline void iwl_legacy_disable_interrupts (struct iwl_priv *priv)
RFC PATCH 2/27 iwlwifi: fix stop/wake queue hacks
In reply to Kalle ValoThe hacks break once mac80211-compat.h is taken into use. Fix it by adding an ifdef check.
--- drivers/net/wireless/iwlwifi/iwl-helpers.h | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
drivers/net/wireless/iwlwifi/iwl-helpers.h +9 -0
@@ -120,7 +120,16 @@ static inline void iwl_wake_any_queue(struct iwl_priv *priv, } } +#ifdef ieee80211_stop_queue +#undef ieee80211_stop_queue +#endif +#define ieee80211_stop_queue DO_NOT_USE_ieee80211_stop_queue + +#ifdef ieee80211_wake_queue +#undef ieee80211_wake_queue +#endif +#define ieee80211_wake_queue DO_NOT_USE_ieee80211_wake_queuestatic inline void iwl_disable_interrupts (struct iwl_priv *priv)
RFC PATCH 3/27 zd1211rw: include mac80211.h from zd_chip.h
In reply to Kalle Valozd_chip.h contains one function with a pointer to ieee80211_hw but doesn't include mac80211.h. As a temporary solution include mac80211.h to avoid a warning.
--- drivers/net/wireless/zd1211rw/zd_chip.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/zd1211rw/zd_chip.h +2 -0
@@ -21,6 +21,8 @@#ifndef _ZD_CHIP_H#define _ZD_CHIP_H +#include <net/mac80211.h> +#include "zd_rf.h" #include "zd_usb.h"
RFC PATCH 4/27 rtlwifi: include mac80211.h from core.h
In reply to Kalle Valocore.h references ieee80211_ops but doesn't include mac80211.h, which issues a warning once mac80211-compat.h is taken into use.
--- drivers/net/wireless/rtlwifi/core.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/rtlwifi/core.h +2 -0
@@ -30,6 +30,8 @@#ifndef __RTL_CORE_H__#define __RTL_CORE_H__ +#include <net/mac80211.h> +#define RTL_SUPPORTED_FILTERS \ (FIF_PROMISC_IN_BSS | \ FIF_ALLMULTI | FIF_CONTROL | \
RFC PATCH 5/27 mac80211: switch mac80211.h to use mac80211 prefix
In reply to Kalle ValoIt's very confusing that mac80211 uses ieee80211_ prefix everywhere and then we have the generic net/ieee80211.h and cfg80211 also using ieee80211_ prefix.
To make it easier to the developers change mac80211 use mac80211_ prefix everywhere. As this is a huge task, introduce new file mac80211-compat.h which makes it possible to not break the build while the transition is in progress. Once mac80211 and all the drivers have been changed to use the new prefix mac80211-compat.h will be removed.
--- include/net/mac80211-compat.h | 273 ++++++++ include/net/mac80211.h | 1428 +++++++++++++++++++++-------------------- 2 files changed, 988 insertions(+), 713 deletions(-) create mode 100644 include/net/mac80211-compat.h
include/net/mac80211-compat.h new file +273 -0
@@ -0,0 +1,273 @@ +/* +* mac80211 <-> driver interface +* +* Copyright 2002-2005, Devicescape Software, Inc. +* Copyright 2006-2007 Jiri Benc <[email protected]> +* Copyright 2007-2010 Johannes Berg <[email protected]> +* Copyright 2011 Kalle Valo <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#ifndef MAC80211_COMPAT_H +#define MAC80211_COMPAT_H + +#define ieee80211_max_queues mac80211_max_queues +#define IEEE80211_MAX_QUEUES MAC80211_MAX_QUEUES + +#define ieee80211_ac_numbers mac80211_ac_numbers +#define IEEE80211_AC_VO MAC80211_AC_VO +#define IEEE80211_AC_VI MAC80211_AC_VI +#define IEEE80211_AC_BE MAC80211_AC_BE +#define IEEE80211_AC_BK MAC80211_AC_BK + +#define ieee80211_tx_queue_params mac80211_tx_queue_params + +#define ieee80211_low_level_stats mac80211_low_level_stats + +#define ieee80211_bss_change mac80211_bss_change + +#define IEEE80211_BSS_ARP_ADDR_LIST_LEN MAC80211_BSS_ARP_ADDR_LIST_LEN + +#define ieee80211_bss_conf mac80211_bss_conf + +#define IEEE80211_TX_CTL_REQ_TX_STATUS MAC80211_TX_CTL_REQ_TX_STATUS +#define IEEE80211_TX_CTL_ASSIGN_SEQ MAC80211_TX_CTL_ASSIGN_SEQ +#define IEEE80211_TX_CTL_NO_ACK MAC80211_TX_CTL_NO_ACK +#define IEEE80211_TX_CTL_CLEAR_PS_FILT MAC80211_TX_CTL_CLEAR_PS_FILT +#define IEEE80211_TX_CTL_FIRST_FRAGMENT MAC80211_TX_CTL_FIRST_FRAGMENT +#define IEEE80211_TX_CTL_SEND_AFTER_DTIM MAC80211_TX_CTL_SEND_AFTER_DTIM +#define IEEE80211_TX_CTL_AMPDU MAC80211_TX_CTL_AMPDU +#define IEEE80211_TX_CTL_INJECTED MAC80211_TX_CTL_INJECTED +#define IEEE80211_TX_STAT_TX_FILTERED MAC80211_TX_STAT_TX_FILTERED +#define IEEE80211_TX_STAT_ACK MAC80211_TX_STAT_ACK +#define IEEE80211_TX_STAT_AMPDU MAC80211_TX_STAT_AMPDU +#define IEEE80211_TX_STAT_AMPDU_NO_BACK MAC80211_TX_STAT_AMPDU_NO_BACK +#define IEEE80211_TX_CTL_RATE_CTRL_PROBE MAC80211_TX_CTL_RATE_CTRL_PROBE +#define IEEE80211_TX_INTFL_NEED_TXPROCESSING MAC80211_TX_INTFL_NEED_TXPROCESSING +#define IEEE80211_TX_INTFL_RETRIED MAC80211_TX_INTFL_RETRIED +#define IEEE80211_TX_INTFL_DONT_ENCRYPT MAC80211_TX_INTFL_DONT_ENCRYPT +#define IEEE80211_TX_CTL_PSPOLL_RESPONSE MAC80211_TX_CTL_PSPOLL_RESPONSE +#define IEEE80211_TX_CTL_MORE_FRAMES MAC80211_TX_CTL_MORE_FRAMES +#define IEEE80211_TX_INTFL_RETRANSMISSION MAC80211_TX_INTFL_RETRANSMISSION +#define IEEE80211_TX_INTFL_HAS_RADIOTAP MAC80211_TX_INTFL_HAS_RADIOTAP +#define IEEE80211_TX_INTFL_NL80211_FRAME_TX MAC80211_TX_INTFL_NL80211_FRAME_TX +#define IEEE80211_TX_CTL_LDPC MAC80211_TX_CTL_LDPC +#define IEEE80211_TX_CTL_STBC MAC80211_TX_CTL_STBC +#define IEEE80211_TX_CTL_TX_OFFCHAN MAC80211_TX_CTL_TX_OFFCHAN +#define IEEE80211_TX_INTFL_TKIP_MIC_FAILURE MAC80211_TX_INTFL_TKIP_MIC_FAILURE + +#define IEEE80211_TX_CTL_STBC_SHIFT MAC80211_TX_CTL_STBC_SHIFT + +#define IEEE80211_TX_TEMPORARY_FLAGS MAC80211_TX_TEMPORARY_FLAGS + +#define IEEE80211_TX_RC_USE_RTS_CTS MAC80211_TX_RC_USE_RTS_CTS +#define IEEE80211_TX_RC_USE_CTS_PROTECT MAC80211_TX_RC_USE_CTS_PROTECT +#define IEEE80211_TX_RC_USE_SHORT_PREAMBLE MAC80211_TX_RC_USE_SHORT_PREAMBLE +#define IEEE80211_TX_RC_MCS MAC80211_TX_RC_MCS +#define IEEE80211_TX_RC_GREEN_FIELD MAC80211_TX_RC_GREEN_FIELD +#define IEEE80211_TX_RC_40_MHZ_WIDTH MAC80211_TX_RC_40_MHZ_WIDTH +#define IEEE80211_TX_RC_DUP_DATA MAC80211_TX_RC_DUP_DATA +#define IEEE80211_TX_RC_SHORT_GI MAC80211_TX_RC_SHORT_GI + +#define IEEE80211_TX_INFO_DRIVER_DATA_SIZE MAC80211_TX_INFO_DRIVER_DATA_SIZE +#define IEEE80211_TX_INFO_RATE_DRIVER_DATA_SIZE MAC80211_TX_INFO_RATE_DRIVER_DATA_SIZE +#define IEEE80211_TX_MAX_RATES MAC80211_TX_MAX_RATES + +#define ieee80211_tx_rate mac80211_tx_rate +#define ieee80211_tx_info mac80211_tx_info + +#define ieee80211_tx_info mac80211_tx_info +#define ieee80211_rx_status mac80211_rx_status + +#define ieee80211_sched_scan_ies mac80211_sched_scan_ies + +#define IEEE80211_SKB_CB MAC80211_SKB_CB + +#define IEEE80211_SKB_RXCB MAC80211_SKB_RXCB + +#define ieee80211_tx_info_clear_status mac80211_tx_info_clear_status + +#define ieee80211_rx_status mac80211_rx_status + +#define ieee80211_conf_flags mac80211_conf_flags + +#define IEEE80211_CONF_MONITOR MAC80211_CONF_MONITOR +#define IEEE80211_CONF_PS MAC80211_CONF_PS +#define IEEE80211_CONF_IDLE MAC80211_CONF_IDLE +#define IEEE80211_CONF_OFFCHANNEL MAC80211_CONF_OFFCHANNEL + +#define ieee80211_conf_changed mac80211_conf_changed + +#define IEEE80211_CONF_CHANGE_SMPS MAC80211_CONF_CHANGE_SMPS +#define IEEE80211_CONF_CHANGE_LISTEN_INTERVAL MAC80211_CONF_CHANGE_LISTEN_INTERVAL +#define IEEE80211_CONF_CHANGE_MONITOR MAC80211_CONF_CHANGE_MONITOR +#define IEEE80211_CONF_CHANGE_PS MAC80211_CONF_CHANGE_PS +#define IEEE80211_CONF_CHANGE_POWER MAC80211_CONF_CHANGE_POWER +#define IEEE80211_CONF_CHANGE_CHANNEL MAC80211_CONF_CHANGE_CHANNEL +#define IEEE80211_CONF_CHANGE_RETRY_LIMITS MAC80211_CONF_CHANGE_RETRY_LIMITS +#define IEEE80211_CONF_CHANGE_IDLE MAC80211_CONF_CHANGE_IDLE + +#define ieee80211_smps_mode mac80211_smps_mode +#define IEEE80211_SMPS_AUTOMATIC MAC80211_SMPS_AUTOMATIC +#define IEEE80211_SMPS_OFF MAC80211_SMPS_OFF +#define IEEE80211_SMPS_STATIC MAC80211_SMPS_STATIC +#define IEEE80211_SMPS_DYNAMIC MAC80211_SMPS_DYNAMIC +#define IEEE80211_SMPS_NUM_MODES MAC80211_SMPS_NUM_MODES + +#define ieee80211_conf mac80211_conf +#define ieee80211_channel_switch mac80211_channel_switch +#define ieee80211_vif mac80211_vif +#define ieee80211_vif_is_mesh mac80211_vif_is_mesh + +#define ieee80211_key_flags mac80211_key_flags +#define IEEE80211_KEY_FLAG_WMM_STA MAC80211_KEY_FLAG_WMM_STA +#define IEEE80211_KEY_FLAG_GENERATE_IV MAC80211_KEY_FLAG_GENERATE_IV +#define IEEE80211_KEY_FLAG_GENERATE_MMIC MAC80211_KEY_FLAG_GENERATE_MMIC +#define IEEE80211_KEY_FLAG_PAIRWISE MAC80211_KEY_FLAG_PAIRWISE +#define IEEE80211_KEY_FLAG_SW_MGMT MAC80211_KEY_FLAG_SW_MGMT + +#define ieee80211_key_conf mac80211_key_conf +#define ieee80211_sta mac80211_sta + +#define ieee80211_tkip_key_type mac80211_tkip_key_type +#define IEEE80211_TKIP_P1_KEY MAC80211_TKIP_P1_KEY +#define IEEE80211_TKIP_P2_KEY MAC80211_TKIP_P2_KEY + +#define ieee80211_hw_flags mac80211_hw_flags + +#define IEEE80211_HW_HAS_RATE_CONTROL MAC80211_HW_HAS_RATE_CONTROL +#define IEEE80211_HW_RX_INCLUDES_FCS MAC80211_HW_RX_INCLUDES_FCS +#define IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING MAC80211_HW_HOST_BROADCAST_PS_BUFFERING +#define IEEE80211_HW_2GHZ_SHORT_SLOT_INCAPABLE MAC80211_HW_2GHZ_SHORT_SLOT_INCAPABLE +#define IEEE80211_HW_2GHZ_SHORT_PREAMBLE_INCAPABLE MAC80211_HW_2GHZ_SHORT_PREAMBLE_INCAPABLE +#define IEEE80211_HW_SIGNAL_UNSPEC MAC80211_HW_SIGNAL_UNSPEC +#define IEEE80211_HW_SIGNAL_DBM MAC80211_HW_SIGNAL_DBM +#define IEEE80211_HW_NEED_DTIM_PERIOD MAC80211_HW_NEED_DTIM_PERIOD +#define IEEE80211_HW_SPECTRUM_MGMT MAC80211_HW_SPECTRUM_MGMT +#define IEEE80211_HW_AMPDU_AGGREGATION MAC80211_HW_AMPDU_AGGREGATION +#define IEEE80211_HW_SUPPORTS_PS MAC80211_HW_SUPPORTS_PS +#define IEEE80211_HW_PS_NULLFUNC_STACK MAC80211_HW_PS_NULLFUNC_STACK +#define IEEE80211_HW_SUPPORTS_DYNAMIC_PS MAC80211_HW_SUPPORTS_DYNAMIC_PS +#define IEEE80211_HW_MFP_CAPABLE MAC80211_HW_MFP_CAPABLE +#define IEEE80211_HW_BEACON_FILTER MAC80211_HW_BEACON_FILTER +#define IEEE80211_HW_SUPPORTS_STATIC_SMPS MAC80211_HW_SUPPORTS_STATIC_SMPS +#define IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS MAC80211_HW_SUPPORTS_DYNAMIC_SMPS +#define IEEE80211_HW_SUPPORTS_UAPSD MAC80211_HW_SUPPORTS_UAPSD +#define IEEE80211_HW_REPORTS_TX_ACK_STATUS MAC80211_HW_REPORTS_TX_ACK_STATUS +#define IEEE80211_HW_CONNECTION_MONITOR MAC80211_HW_CONNECTION_MONITOR +#define IEEE80211_HW_SUPPORTS_CQM_RSSI MAC80211_HW_SUPPORTS_CQM_RSSI +#define IEEE80211_HW_SUPPORTS_PER_STA_GTK MAC80211_HW_SUPPORTS_PER_STA_GTK +#define IEEE80211_HW_AP_LINK_PS MAC80211_HW_AP_LINK_PS + +#define ieee80211_hw mac80211_hw +#define wiphy_to_ieee80211_hw wiphy_to_mac80211_hw +#define SET_IEEE80211_DEV SET_MAC80211_DEV +#define SET_IEEE80211_PERM_ADDR SET_MAC80211_PERM_ADDR + +#define ieee80211_get_tx_rate mac80211_get_tx_rate +#define ieee80211_get_rts_cts_rate mac80211_get_rts_cts_rate +#define ieee80211_get_alt_retry_rate mac80211_get_alt_retry_rate + +#define ieee80211_filter_flags mac80211_filter_flags + +#define ieee80211_ampdu_mlme_action mac80211_ampdu_mlme_action +#define IEEE80211_AMPDU_RX_START MAC80211_AMPDU_RX_START +#define IEEE80211_AMPDU_RX_STOP MAC80211_AMPDU_RX_STOP +#define IEEE80211_AMPDU_TX_START MAC80211_AMPDU_TX_START +#define IEEE80211_AMPDU_TX_STOP MAC80211_AMPDU_TX_STOP +#define IEEE80211_AMPDU_TX_OPERATIONAL MAC80211_AMPDU_TX_OPERATIONAL + +#define ieee80211_ops mac80211_ops +#define ieee80211_alloc_hw mac80211_alloc_hw +#define ieee80211_register_hw mac80211_register_hw +#define ieee80211_tpt_blink mac80211_tpt_blink + +#define ieee80211_tpt_led_trigger_flags mac80211_tpt_led_trigger_flags +#define IEEE80211_TPT_LEDTRIG_FL_RADIO MAC80211_TPT_LEDTRIG_FL_RADIO +#define IEEE80211_TPT_LEDTRIG_FL_WORK MAC80211_TPT_LEDTRIG_FL_WORK +#define IEEE80211_TPT_LEDTRIG_FL_CONNECTED MAC80211_TPT_LEDTRIG_FL_CONNECTED + +#define __ieee80211_get_tx_led_name __mac80211_get_tx_led_name +#define __ieee80211_get_rx_led_name __mac80211_get_rx_led_name +#define __ieee80211_get_assoc_led_name __mac80211_get_assoc_led_name +#define __ieee80211_get_radio_led_name __mac80211_get_radio_led_name +#define __ieee80211_create_tpt_led_trigger __mac80211_create_tpt_led_trigger + +#define ieee80211_get_tx_led_name mac80211_get_tx_led_name +#define ieee80211_get_rx_led_name mac80211_get_rx_led_name +#define ieee80211_get_assoc_led_name mac80211_get_assoc_led_name +#define ieee80211_get_radio_led_name mac80211_get_radio_led_name +#define ieee80211_create_tpt_led_trigger mac80211_create_tpt_led_trigger +#define ieee80211_unregister_hw mac80211_unregister_hw +#define ieee80211_free_hw mac80211_free_hw +#define ieee80211_restart_hw mac80211_restart_hw +#define ieee80211_napi_schedule mac80211_napi_schedule +#define ieee80211_napi_complete mac80211_napi_complete +#define ieee80211_rx mac80211_rx +#define ieee80211_rx_irqsafe mac80211_rx_irqsafe +#define ieee80211_rx_ni mac80211_rx_ni +#define ieee80211_sta_ps_transition mac80211_sta_ps_transition +#define ieee80211_sta_ps_transition_ni mac80211_sta_ps_transition_ni +#define IEEE80211_TX_STATUS_HEADROOM MAC80211_TX_STATUS_HEADROOM +#define ieee80211_sta_set_tim mac80211_sta_set_tim +#define ieee80211_tx_status mac80211_tx_status +#define ieee80211_tx_status_ni mac80211_tx_status_ni +#define ieee80211_tx_status_irqsafe mac80211_tx_status_irqsafe +#define ieee80211_report_low_ack mac80211_report_low_ack +#define ieee80211_beacon_get_tim mac80211_beacon_get_tim +#define ieee80211_beacon_get mac80211_beacon_get +#define ieee80211_pspoll_get mac80211_pspoll_get +#define ieee80211_nullfunc_get mac80211_nullfunc_get +#define ieee80211_probereq_get mac80211_probereq_get +#define ieee80211_rts_get mac80211_rts_get +#define ieee80211_rts_duration mac80211_rts_duration +#define ieee80211_ctstoself_get mac80211_ctstoself_get +#define ieee80211_ctstoself_duration mac80211_ctstoself_duration +#define ieee80211_generic_frame_duration mac80211_generic_frame_duration +#define ieee80211_get_buffered_bc mac80211_get_buffered_bc +#define ieee80211_get_tkip_key mac80211_get_tkip_key +#define ieee80211_wake_queue mac80211_wake_queue +#define ieee80211_stop_queue mac80211_stop_queue +#define ieee80211_queue_stopped mac80211_queue_stopped +#define ieee80211_stop_queues mac80211_stop_queues +#define ieee80211_wake_queues mac80211_wake_queues +#define ieee80211_scan_completed mac80211_scan_completed +#define ieee80211_sched_scan_results mac80211_sched_scan_results +#define ieee80211_sched_scan_stopped mac80211_sched_scan_stopped +#define ieee80211_iterate_active_interfaces mac80211_iterate_active_interfaces +#define ieee80211_iterate_active_interfaces_atomic mac80211_iterate_active_interfaces_atomic +#define ieee80211_queue_work mac80211_queue_work +#define ieee80211_queue_delayed_work mac80211_queue_delayed_work +#define ieee80211_start_tx_ba_session mac80211_start_tx_ba_session +#define ieee80211_start_tx_ba_cb_irqsafe mac80211_start_tx_ba_cb_irqsafe +#define ieee80211_stop_tx_ba_session mac80211_stop_tx_ba_session +#define ieee80211_stop_tx_ba_cb_irqsafe mac80211_stop_tx_ba_cb_irqsafe +#define ieee80211_find_sta mac80211_find_sta +#define ieee80211_find_sta_by_ifaddr mac80211_find_sta_by_ifaddr +#define ieee80211_sta_block_awake mac80211_sta_block_awake +#define ieee80211_ap_probereq_get mac80211_ap_probereq_get +#define ieee80211_beacon_loss mac80211_beacon_loss +#define ieee80211_connection_loss mac80211_connection_loss +#define ieee80211_disable_dyn_ps mac80211_disable_dyn_ps +#define ieee80211_enable_dyn_ps mac80211_enable_dyn_ps +#define ieee80211_cqm_rssi_notify mac80211_cqm_rssi_notify +#define ieee80211_chswitch_done mac80211_chswitch_done +#define ieee80211_request_smps mac80211_request_smps +#define ieee80211_key_removed mac80211_key_removed +#define ieee80211_ready_on_channel mac80211_ready_on_channel +#define ieee80211_remain_on_channel_expired mac80211_remain_on_channel_expired + +#define IEEE80211_RC_HT_CHANGED MAC80211_RC_HT_CHANGED + +#define ieee80211_tx_rate_control mac80211_tx_rate_control + +#define ieee80211_rate_control_register mac80211_rate_control_register +#define ieee80211_rate_control_unregister mac80211_rate_control_unregister + +#define ieee80211_iftype_p2p mac80211_iftype_p2p +#define ieee80211_vif_type_p2p mac80211_vif_type_p2p + +#endif /* MAC80211_COMPAT_H */
include/net/mac80211.h +715 -713
2,727 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
RFC PATCH 6/27 mac80211: rename ieee80211_i.h to mac80211_i.h
In reply to Kalle Valo--- net/mac80211/agg-rx.c | 2 net/mac80211/agg-tx.c | 2 net/mac80211/cfg.c | 2 net/mac80211/chan.c | 2 net/mac80211/debugfs.c | 2 net/mac80211/debugfs_key.c | 2 net/mac80211/debugfs_netdev.c | 2 net/mac80211/debugfs_sta.c | 2 net/mac80211/driver-ops.h | 2 net/mac80211/driver-trace.h | 2 net/mac80211/event.c | 2 net/mac80211/ht.c | 2 net/mac80211/ibss.c | 2 net/mac80211/ieee80211_i.h | 1409 ----------------------------------------- net/mac80211/iface.c | 2 net/mac80211/key.c | 2 net/mac80211/led.h | 2 net/mac80211/mac80211_i.h | 1409 +++++++++++++++++++++++++++++++++++++++++ net/mac80211/main.c | 2 net/mac80211/mesh.c | 2 net/mac80211/mesh.h | 2 net/mac80211/mesh_pathtbl.c | 2 net/mac80211/mesh_plink.c | 2 net/mac80211/mlme.c | 2 net/mac80211/offchannel.c | 2 net/mac80211/pm.c | 2 net/mac80211/rate.c | 2 net/mac80211/rate.h | 2 net/mac80211/rx.c | 2 net/mac80211/scan.c | 2 net/mac80211/spectmgmt.c | 2 net/mac80211/sta_info.c | 2 net/mac80211/status.c | 2 net/mac80211/tx.c | 2 net/mac80211/util.c | 2 net/mac80211/wep.c | 2 net/mac80211/wep.h | 2 net/mac80211/wme.c | 2 net/mac80211/wme.h | 2 net/mac80211/work.c | 2 net/mac80211/wpa.c | 2 net/mac80211/wpa.h | 2 42 files changed, 1449 insertions(+), 1449 deletions(-) delete mode 100644 net/mac80211/ieee80211_i.h create mode 100644 net/mac80211/mac80211_i.h
net/mac80211/agg-rx.c +1 -1
@@ -39,7 +39,7 @@#include <linux/ieee80211.h> #include <linux/slab.h> #include <net/mac80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "driver-ops.h" static void ieee80211_free_tid_rx (struct rcu_head *h)
net/mac80211/agg-tx.c +1 -1
@@ -16,7 +16,7 @@#include <linux/ieee80211.h> #include <linux/slab.h> #include <net/mac80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "driver-ops.h" #include "wme.h"
net/mac80211/cfg.c +1 -1
@@ -13,7 +13,7 @@#include <net/net_namespace.h> #include <linux/rcupdate.h> #include <net/cfg80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "driver-ops.h" #include "cfg.h" #include "rate.h"
net/mac80211/chan.c +1 -1
@@ -3,7 +3,7 @@*/ #include <linux/nl80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" static enum ieee80211_chan_mode __ieee80211_get_channel_mode(struct ieee80211_local *local,
net/mac80211/debugfs.c +1 -1
@@ -10,7 +10,7 @@#include <linux/debugfs.h> #include <linux/rtnetlink.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "driver-ops.h" #include "rate.h" #include "debugfs.h"
net/mac80211/debugfs_key.c +1 -1
@@ -10,7 +10,7 @@#include <linux/kobject.h> #include <linux/slab.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "key.h" #include "debugfs.h" #include "debugfs_key.h"
net/mac80211/debugfs_netdev.c +1 -1
@@ -17,7 +17,7 @@#include <linux/notifier.h> #include <net/mac80211.h> #include <net/cfg80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "rate.h" #include "debugfs.h" #include "debugfs_netdev.h"
net/mac80211/debugfs_sta.c +1 -1
@@ -10,7 +10,7 @@#include <linux/debugfs.h> #include <linux/ieee80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "debugfs.h" #include "debugfs_sta.h" #include "sta_info.h"
net/mac80211/driver-ops.h +1 -1
@@ -2,7 +2,7 @@#define __MAC80211_DRIVER_OPS#include <net/mac80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "driver-trace.h" static inline void drv_tx (struct ieee80211_local *local,struct sk_buff *skb)
net/mac80211/driver-trace.h +1 -1
@@ -3,7 +3,7 @@#include <linux/tracepoint.h> #include <net/mac80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #if !defined(CONFIG_MAC80211_DRIVER_API_TRACER ) || defined(__CHECKER__)#undef TRACE_EVENT
net/mac80211/event.c +1 -1
@@ -8,7 +8,7 @@* mac80211 - events */ #include <net/cfg80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" /* * Indicate a failed Michael MIC to userspace. If the caller knows the TSC of
net/mac80211/ht.c +1 -1
@@ -15,7 +15,7 @@#include <linux/ieee80211.h> #include <net/mac80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "rate.h" void ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_supported_band *sband,
net/mac80211/ibss.c +1 -1
@@ -22,7 +22,7 @@#include <net/mac80211.h> #include <asm/unaligned.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "driver-ops.h" #include "rate.h"
net/mac80211/ieee80211_i.h deleted +0 -1409
1,409 lines not on this page · raw message
net/mac80211/iface.c +1 -1
@@ -17,7 +17,7 @@#include <linux/rtnetlink.h> #include <net/mac80211.h> #include <net/ieee80211_radiotap.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "sta_info.h" #include "debugfs_netdev.h" #include "mesh.h"
net/mac80211/key.c +1 -1
@@ -16,7 +16,7 @@#include <linux/rtnetlink.h> #include <linux/slab.h> #include <net/mac80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "driver-ops.h" #include "debugfs_key.h" #include "aes_ccm.h"
net/mac80211/led.h +1 -1
@@ -9,7 +9,7 @@#include <linux/list.h> #include <linux/spinlock.h> #include <linux/leds.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #ifdef CONFIG_MAC80211_LEDS void ieee80211_led_rx (struct ieee80211_local *local);
net/mac80211/mac80211_i.h new file +1409 -0
1,409 lines not on this page · raw message
net/mac80211/main.c +1 -1
@@ -24,7 +24,7 @@#include <net/net_namespace.h> #include <net/cfg80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "driver-ops.h" #include "rate.h" #include "mesh.h"
net/mac80211/mesh.c +1 -1
@@ -10,7 +10,7 @@#include <linux/slab.h> #include <asm/unaligned.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "mesh.h" #define IEEE80211_MESH_PEER_INACTIVITY_LIMIT (1800 * HZ)
net/mac80211/mesh.h +1 -1
@@ -14,7 +14,7 @@#include <linux/types.h> #include <linux/jhash.h> #include <asm/unaligned.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" /* Data structures */
net/mac80211/mesh_pathtbl.c +1 -1
@@ -14,7 +14,7 @@#include <linux/spinlock.h> #include <linux/string.h> #include <net/mac80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "mesh.h" /* There will be initially 2^INIT_PATHS_SIZE_ORDER buckets */
net/mac80211/mesh_plink.c +1 -1
@@ -9,7 +9,7 @@#include <linux/gfp.h> #include <linux/kernel.h> #include <linux/random.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "rate.h" #include "mesh.h"
net/mac80211/mlme.c +1 -1
@@ -23,7 +23,7 @@#include <net/mac80211.h> #include <asm/unaligned.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "driver-ops.h" #include "rate.h" #include "led.h"
net/mac80211/offchannel.c +1 -1
@@ -13,7 +13,7 @@* published by the Free Software Foundation. */ #include <net/mac80211.h> -#include "ieee80211_i.h" +#include "mac80211_i.h" #include "driver-trace.h"
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
RFC PATCH 7/27 mac80211: rename ieee80211_local to mac80211_local
In reply to Kalle Valo--- net/mac80211/agg-rx.c | 6 +- net/mac80211/agg-tx.c | 32 +++++---- net/mac80211/cfg.c | 64 +++++++++--------- net/mac80211/chan.c | 6 +- net/mac80211/debugfs.c | 30 ++++----- net/mac80211/debugfs.h | 4 + net/mac80211/debugfs_netdev.c | 4 + net/mac80211/driver-ops.h | 96 ++++++++++++++------------- net/mac80211/driver-trace.h | 126 ++++++++++++++++++------------------ net/mac80211/ht.c | 4 + net/mac80211/ibss.c | 18 +++-- net/mac80211/iface.c | 34 +++++----- net/mac80211/key.c | 4 + net/mac80211/key.h | 6 +- net/mac80211/led.c | 34 +++++----- net/mac80211/led.h | 36 +++++----- net/mac80211/mac80211_i.h | 90 +++++++++++++------------- net/mac80211/main.c | 48 +++++++------- net/mac80211/mesh.c | 16 ++--- net/mac80211/mesh.h | 6 +- net/mac80211/mesh_hwmp.c | 10 +-- net/mac80211/mesh_pathtbl.c | 4 + net/mac80211/mesh_plink.c | 8 +- net/mac80211/mlme.c | 64 +++++++++--------- net/mac80211/offchannel.c | 24 +++---- net/mac80211/pm.c | 2 - net/mac80211/rate.c | 6 +- net/mac80211/rate.h | 12 ++- net/mac80211/rc80211_minstrel.c | 4 + net/mac80211/rc80211_minstrel_ht.c | 2 - net/mac80211/rx.c | 40 ++++++----- net/mac80211/scan.c | 46 +++++++------ net/mac80211/spectmgmt.c | 2 - net/mac80211/sta_info.c | 44 ++++++------- net/mac80211/sta_info.h | 10 +-- net/mac80211/status.c | 8 +- net/mac80211/tx.c | 42 ++++++------ net/mac80211/util.c | 60 +++++++++-------- net/mac80211/wep.c | 14 ++-- net/mac80211/wep.h | 6 +- net/mac80211/wme.c | 6 +- net/mac80211/wme.h | 4 + net/mac80211/work.c | 38 +++++------ 43 files changed, 560 insertions(+), 560 deletions(-)
net/mac80211/agg-rx.c +3 -3
@@ -58,7 +58,7 @@ static void ieee80211_free_tid_rx(struct rcu_head *h)void ___ieee80211_stop_rx_ba_session (struct sta_info *sta,u16 tid,u16 initiator,u16 reason,bool tx) { -struct ieee80211_local *local = sta->local; +struct mac80211_local *local = sta->local;struct tid_ampdu_rx *tid_rx;lockdep_assert_held (&sta->ampdu_mlme.mtx);
@@ -138,7 +138,7 @@ static void ieee80211_send_addba_resp(struct ieee80211_sub_if_data *sdata, u8 *d u8 dialog_token, u16 status, u16 policy, u16 buf_size, u16 timeout) { - struct ieee80211_local *local = sdata->local; + struct mac80211_local *local = sdata->local;struct sk_buff *skb;struct ieee80211_mgmt *mgmt;u16 capab;
@@ -181,7 +181,7 @@ static void ieee80211_send_addba_resp(struct ieee80211_sub_if_data *sdata, u8 *dieee80211_tx_skb (sdata, skb); } -void ieee80211_process_addba_request (struct ieee80211_local *local, +void ieee80211_process_addba_request (struct mac80211_local *local,struct sta_info *sta,struct ieee80211_mgmt *mgmt,size_t len)
net/mac80211/agg-tx.c +16 -16
@@ -61,7 +61,7 @@ static void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata, u8 dialog_token, u16 start_seq_num, u16 agg_size, u16 timeout) { - struct ieee80211_local *local = sdata->local; + struct mac80211_local *local = sdata->local;struct sk_buff *skb;struct ieee80211_mgmt *mgmt;u16 capab;
@@ -108,7 +108,7 @@ static void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata,void ieee80211_send_bar (struct ieee80211_sub_if_data *sdata,u8 *ra,u16 tid,u16 ssn) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct sk_buff *skb;struct ieee80211_bar *bar;u16 bar_control =0 ;
@@ -156,7 +156,7 @@ int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid, enum ieee80211_back_parties initiator, bool tx) { -struct ieee80211_local *local = sta->local; +struct mac80211_local *local = sta->local;struct tid_ampdu_tx *tid_tx;int ret;
@@ -269,7 +269,7 @@ static inline int ieee80211_ac_from_tid(int tid)* a global "agg_queue_stop" refcount. */ static void __acquires(agg_queue) -ieee80211_stop_queue_agg(struct ieee80211_local *local, int tid) +ieee80211_stop_queue_agg(struct mac80211_local *local, int tid) { int queue = ieee80211_ac_from_tid(tid);
@@ -281,7 +281,7 @@ ieee80211_stop_queue_agg(struct ieee80211_local *local, int tid) } static void __releases(agg_queue) -ieee80211_wake_queue_agg(struct ieee80211_local *local, int tid) +ieee80211_wake_queue_agg(struct mac80211_local *local, int tid) {int queue =ieee80211_ac_from_tid (tid);
@@ -295,7 +295,7 @@ ieee80211_wake_queue_agg(struct ieee80211_local *local, int tid)void ieee80211_tx_ba_session_handle_start (struct sta_info *sta,int tid) {struct tid_ampdu_tx *tid_tx; -struct ieee80211_local *local = sta->local; +struct mac80211_local *local = sta->local;struct ieee80211_sub_if_data *sdata = sta->sdata;u16 start_seq_num;int ret;
@@ -362,7 +362,7 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, { struct sta_info *sta = container_of(pubsta, struct sta_info, sta);struct ieee80211_sub_if_data *sdata = sta->sdata; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct tid_ampdu_tx *tid_tx;int ret =0 ;
@@ -464,7 +464,7 @@ EXPORT_SYMBOL(ieee80211_start_tx_ba_session);* requires a call to ieee80211_agg_splice_finish later */ static void __acquires(agg_queue) -ieee80211_agg_splice_packets(struct ieee80211_local *local, +ieee80211_agg_splice_packets(struct mac80211_local *local, struct tid_ampdu_tx *tid_tx, u16 tid) { int queue = ieee80211_ac_from_tid(tid);
@@ -486,12 +486,12 @@ ieee80211_agg_splice_packets(struct ieee80211_local *local, }static void __releases (agg_queue) -ieee80211_agg_splice_finish(struct ieee80211_local *local, u16 tid) +ieee80211_agg_splice_finish(struct mac80211_local *local, u16 tid) {ieee80211_wake_queue_agg (local, tid); } -static void ieee80211_agg_tx_operational(struct ieee80211_local *local, +static void ieee80211_agg_tx_operational(struct mac80211_local *local, struct sta_info *sta, u16 tid) {struct tid_ampdu_tx *tid_tx;
@@ -529,7 +529,7 @@ static void ieee80211_agg_tx_operational(struct ieee80211_local *local,void ieee80211_start_tx_ba_cb (struct ieee80211_vif *vif,u8 *ra,u16 tid) {struct ieee80211_sub_if_data *sdata =vif_to_sdata (vif); -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct sta_info *sta;struct tid_ampdu_tx *tid_tx;
@@ -578,7 +578,7 @@ void ieee80211_start_tx_ba_cb_irqsafe(struct ieee80211_vif *vif, const u8 *ra, u16 tid) {struct ieee80211_sub_if_data *sdata =vif_to_sdata (vif); -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct ieee80211_ra_tid *ra_tid;struct sk_buff *skb =dev_alloc_skb (0 );
@@ -619,7 +619,7 @@ int ieee80211_stop_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid) { struct sta_info *sta = container_of(pubsta, struct sta_info, sta);struct ieee80211_sub_if_data *sdata = sta->sdata; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct tid_ampdu_tx *tid_tx;int ret =0 ;
@@ -657,7 +657,7 @@ EXPORT_SYMBOL(ieee80211_stop_tx_ba_session);void ieee80211_stop_tx_ba_cb (struct ieee80211_vif *vif,u8 *ra,u8 tid) {struct ieee80211_sub_if_data *sdata =vif_to_sdata (vif); -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct sta_info *sta;struct tid_ampdu_tx *tid_tx;
@@ -731,7 +731,7 @@ void ieee80211_stop_tx_ba_cb_irqsafe(struct ieee80211_vif *vif, const u8 *ra, u16 tid) {struct ieee80211_sub_if_data *sdata =vif_to_sdata (vif); -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct ieee80211_ra_tid *ra_tid;struct sk_buff *skb =dev_alloc_skb (0 );
@@ -754,7 +754,7 @@ void ieee80211_stop_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,EXPORT_SYMBOL (ieee80211_stop_tx_ba_cb_irqsafe); -void ieee80211_process_addba_resp (struct ieee80211_local *local, +void ieee80211_process_addba_resp (struct mac80211_local *local,struct sta_info *sta,struct ieee80211_mgmt *mgmt,size_t len)
net/mac80211/cfg.c +32 -32
256 lines not on this page · raw message
net/mac80211/chan.c +3 -3
@@ -6,7 +6,7 @@#include "mac80211_i.h" static enum ieee80211_chan_mode -__ieee80211_get_channel_mode (struct ieee80211_local *local, +__ieee80211_get_channel_mode (struct mac80211_local *local,struct ieee80211_sub_if_data *ignore) {struct ieee80211_sub_if_data *sdata;
@@ -45,7 +45,7 @@ __ieee80211_get_channel_mode(struct ieee80211_local *local, }enum ieee80211_chan_mode -ieee80211_get_channel_mode (struct ieee80211_local *local, +ieee80211_get_channel_mode (struct mac80211_local *local,struct ieee80211_sub_if_data *ignore) {enum ieee80211_chan_mode mode;
@@ -57,7 +57,7 @@ ieee80211_get_channel_mode(struct ieee80211_local *local,return mode; } -bool ieee80211_set_channel_type (struct ieee80211_local *local, +bool ieee80211_set_channel_type (struct mac80211_local *local,struct ieee80211_sub_if_data *sdata,enum nl80211_channel_type chantype) {
net/mac80211/debugfs.c +15 -15
@@ -41,7 +41,7 @@ int mac80211_format_buffer(char __user *userbuf, size_t count, static ssize_t name## _read(struct file *file, char __user *userbuf, \size_t count,loff_t *ppos) \ { \ -struct ieee80211_local *local = file->private_data; \ +struct mac80211_local *local = file->private_data; \ \return mac80211_format_buffer (userbuf, count, ppos, \ fmt "\n", ##value); \
@@ -81,7 +81,7 @@ DEBUGFS_READONLY_FILE(rate_ctrl_alg, "%s",static ssize_t tsf_read (struct file *file,char __user *user_buf,size_t count,loff_t *ppos) { -struct ieee80211_local *local = file->private_data; +struct mac80211_local *local = file->private_data;u64 tsf; tsf =drv_get_tsf (local);
@@ -94,7 +94,7 @@ static ssize_t tsf_write(struct file *file,const char __user *user_buf, size_t count, loff_t *ppos) { - struct ieee80211_local *local = file->private_data; + struct mac80211_local *local = file->private_data;unsigned long long tsf;char buf[100 ];size_t len;
@@ -132,7 +132,7 @@ static const struct file_operations tsf_ops = {static ssize_t reset_write (struct file *file,const char __user *user_buf,size_t count,loff_t *ppos) { -struct ieee80211_local *local = file->private_data; +struct mac80211_local *local = file->private_data;rtnl_lock ();__ieee80211_suspend (&local->hw,NULL );
@@ -151,7 +151,7 @@ static const struct file_operations reset_ops = {static ssize_t noack_read (struct file *file,char __user *user_buf,size_t count,loff_t *ppos) { -struct ieee80211_local *local = file->private_data; +struct mac80211_local *local = file->private_data;return mac80211_format_buffer (user_buf, count, ppos,"%d\n" , local->wifi_wme_noack_test);
@@ -161,7 +161,7 @@ static ssize_t noack_write(struct file *file,const char __user *user_buf, size_t count, loff_t *ppos) { - struct ieee80211_local *local = file->private_data; + struct mac80211_local *local = file->private_data;char buf[10 ];size_t len;
@@ -185,7 +185,7 @@ static const struct file_operations noack_ops = {static ssize_t uapsd_queues_read (struct file *file,char __user *user_buf,size_t count,loff_t *ppos) { -struct ieee80211_local *local = file->private_data; +struct mac80211_local *local = file->private_data;return mac80211_format_buffer (user_buf, count, ppos,"0x%x\n" , local->uapsd_queues); }
@@ -194,7 +194,7 @@ static ssize_t uapsd_queues_write(struct file *file,const char __user *user_buf, size_t count, loff_t *ppos) { - struct ieee80211_local *local = file->private_data; + struct mac80211_local *local = file->private_data;unsigned long val;char buf[10 ];size_t len;
@@ -228,7 +228,7 @@ static const struct file_operations uapsd_queues_ops = {static ssize_t uapsd_max_sp_len_read (struct file *file,char __user *user_buf,size_t count,loff_t *ppos) { -struct ieee80211_local *local = file->private_data; +struct mac80211_local *local = file->private_data;return mac80211_format_buffer (user_buf, count, ppos,"0x%x\n" , local->uapsd_max_sp_len);
@@ -238,7 +238,7 @@ static ssize_t uapsd_max_sp_len_write(struct file *file,const char __user *user_buf, size_t count, loff_t *ppos) { - struct ieee80211_local *local = file->private_data; + struct mac80211_local *local = file->private_data;unsigned long val;char buf[10 ];size_t len;
@@ -272,7 +272,7 @@ static const struct file_operations uapsd_max_sp_len_ops = {static ssize_t channel_type_read (struct file *file,char __user *user_buf,size_t count,loff_t *ppos) { -struct ieee80211_local *local = file->private_data; +struct mac80211_local *local = file->private_data;const char *buf;switch (local->hw.conf.channel_type) {
@@ -299,7 +299,7 @@ static ssize_t channel_type_read(struct file *file, char __user *user_buf,static ssize_t hwflags_read (struct file *file,char __user *user_buf,size_t count,loff_t *ppos) { -struct ieee80211_local *local = file->private_data; +struct mac80211_local *local = file->private_data;int mxln =500 ;ssize_t rv;char *buf =kzalloc (mxln,GFP_KERNEL );
@@ -364,7 +364,7 @@ static ssize_t hwflags_read(struct file *file, char __user *user_buf,static ssize_t queues_read (struct file *file,char __user *user_buf,size_t count,loff_t *ppos) { -struct ieee80211_local *local = file->private_data; +struct mac80211_local *local = file->private_data;unsigned long flags;char buf[IEEE80211_MAX_QUEUES *20 ];int q, res =0 ;
@@ -385,7 +385,7 @@ DEBUGFS_READONLY_FILE_OPS(queues);/* statistics stuff */ -static ssize_t format_devstat_counter(struct ieee80211_local *local, +static ssize_t format_devstat_counter(struct mac80211_local *local, char __user *userbuf, size_t count, loff_t *ppos, int (*printvalue)(struct ieee80211_low_level_stats *stats, char *buf,
@@ -437,7 +437,7 @@ DEBUGFS_DEVSTATS_FILE(dot11RTSFailureCount);DEBUGFS_DEVSTATS_FILE (dot11FCSErrorCount);DEBUGFS_DEVSTATS_FILE (dot11RTSSuccessCount); -void debugfs_hw_add (struct ieee80211_local *local) +void debugfs_hw_add (struct mac80211_local *local) {struct dentry *phyd = local->hw.wiphy->debugfsdir;struct dentry *statsd;
net/mac80211/debugfs.h +2 -2
@@ -2,12 +2,12 @@#define __MAC80211_DEBUGFS_H#ifdef CONFIG_MAC80211_DEBUGFS -extern void debugfs_hw_add (struct ieee80211_local *local); +extern void debugfs_hw_add (struct mac80211_local *local);extern int mac80211_open_file_generic (struct inode *inode,struct file *file);extern int mac80211_format_buffer (char __user *userbuf,size_t count,loff_t *ppos,char *fmt, ...);#else -static inline void debugfs_hw_add (struct ieee80211_local *local) +static inline void debugfs_hw_add (struct mac80211_local *local) { }#endif
net/mac80211/debugfs_netdev.c +2 -2
@@ -160,7 +160,7 @@ IEEE80211_IF_FILE(ave_beacon, u.mgd.ave_beacon_signal, DEC_DIV_16);static int ieee80211_set_smps (struct ieee80211_sub_if_data *sdata,enum ieee80211_smps_mode smps_mode) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;int err; if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_STATIC_SMPS) &&
@@ -251,7 +251,7 @@ static int hwaddr_aton(const char *txt, u8 *addr)static ssize_t ieee80211_if_parse_tkip_mic_test (struct ieee80211_sub_if_data *sdata,const char *buf,int buflen) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;u8 addr[ETH_ALEN ];struct sk_buff *skb;struct ieee80211_hdr *hdr;
net/mac80211/driver-ops.h +48 -48
382 lines not on this page · raw message
net/mac80211/driver-trace.h +63 -63
467 lines not on this page · raw message
net/mac80211/ht.c +2 -2
@@ -174,7 +174,7 @@ void ieee80211_send_delba(struct ieee80211_sub_if_data *sdata, const u8 *da, u16 tid, u16 initiator, u16 reason_code) { - struct ieee80211_local *local = sdata->local; + struct mac80211_local *local = sdata->local;struct sk_buff *skb;struct ieee80211_mgmt *mgmt;u16 params;
@@ -244,7 +244,7 @@ int ieee80211_send_smps_action(struct ieee80211_sub_if_data *sdata, enum ieee80211_smps_mode smps, const u8 *da, const u8 *bssid) { - struct ieee80211_local *local = sdata->local; + struct mac80211_local *local = sdata->local;struct sk_buff *skb;struct ieee80211_mgmt *action_frame;
net/mac80211/ibss.c +9 -9
@@ -68,7 +68,7 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata, const u16 capability, u64 tsf) {struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;int rates, i;struct sk_buff *skb;struct ieee80211_mgmt *mgmt;
@@ -257,7 +257,7 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, struct ieee802_11_elems *elems, bool beacon) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;int freq;struct cfg80211_bss *cbss;struct ieee80211_bss *bss;
@@ -421,7 +421,7 @@ struct sta_info *ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, gfp_t gfp) {struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct sta_info *sta;int band = local->hw.conf.channel->band;
@@ -468,7 +468,7 @@ struct sta_info *ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata,static int ieee80211_sta_active_ibss (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;int active =0 ;struct sta_info *sta;
@@ -567,7 +567,7 @@ static void ieee80211_sta_create_ibss(struct ieee80211_sub_if_data *sdata)static void ieee80211_sta_find_ibss (struct ieee80211_sub_if_data *sdata) {struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct cfg80211_bss *cbss;struct ieee80211_channel *chan =NULL ;const u8 *bssid =NULL ;
@@ -658,7 +658,7 @@ static void ieee80211_rx_mgmt_probe_req(struct ieee80211_sub_if_data *sdata, {struct ieee80211_mgmt *mgmt = (void *)req->data;struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;int tx_last_beacon, len = req->len;struct sk_buff *skb;struct ieee80211_mgmt *resp;
@@ -834,7 +834,7 @@ static void ieee80211_ibss_timer(unsigned long data)struct ieee80211_sub_if_data *sdata = (struct ieee80211_sub_if_data *) data;struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;if (local->quiescing) { ifibss->timer_running = true;
@@ -874,7 +874,7 @@ void ieee80211_ibss_setup_sdata(struct ieee80211_sub_if_data *sdata) }/* scan finished notification */ -void ieee80211_ibss_notify_scan_completed (struct ieee80211_local *local) +void ieee80211_ibss_notify_scan_completed (struct mac80211_local *local) {struct ieee80211_sub_if_data *sdata;
@@ -958,7 +958,7 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata) {struct sk_buff *skb;struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct cfg80211_bss *cbss;u16 capability;int active_ibss;
net/mac80211/iface.c +17 -17
@@ -29,7 +29,7 @@/** * DOC: Interface list locking * -* The interface list in each struct ieee80211_local is protected +* The interface list in each struct mac80211_local is protected * three-fold: * * (1) modifications may only be done under the RTNL
@@ -98,7 +98,7 @@ static inline int identical_mac_addr_allowed(int type1, int type2)static int ieee80211_check_concurrent_iface (struct ieee80211_sub_if_data *sdata,enum nl80211_iftype iftype) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct ieee80211_sub_if_data *nsdata;struct net_device *dev = sdata->dev;
@@ -152,7 +152,7 @@ static int ieee80211_check_concurrent_iface(struct ieee80211_sub_if_data *sdata,void ieee80211_adjust_monitor_flags (struct ieee80211_sub_if_data *sdata,const int offset) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;u32 flags = sdata->u.mntr_flags;#define ADJUST (_f, _s) do { \
@@ -177,7 +177,7 @@ void ieee80211_adjust_monitor_flags(struct ieee80211_sub_if_data *sdata,static int ieee80211_do_open (struct net_device *dev,bool coming_up) {struct ieee80211_sub_if_data *sdata =IEEE80211_DEV_TO_SUB_IF (dev); -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct sta_info *sta;u32 changed =0 ;int res;
@@ -377,7 +377,7 @@ static int ieee80211_open(struct net_device *dev)static void ieee80211_do_stop (struct ieee80211_sub_if_data *sdata,bool going_down) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;unsigned long flags;struct sk_buff *skb, *tmp;u32 hw_reconf_flags =0 ;
@@ -579,7 +579,7 @@ static int ieee80211_stop(struct net_device *dev)static void ieee80211_set_multicast_list (struct net_device *dev) {struct ieee80211_sub_if_data *sdata =IEEE80211_DEV_TO_SUB_IF (dev); -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;int allmulti, promisc, sdata_allmulti, sdata_promisc; allmulti = !!(dev->flags &IFF_ALLMULTI );
@@ -615,7 +615,7 @@ static void ieee80211_set_multicast_list(struct net_device *dev)static void ieee80211_teardown_sdata (struct net_device *dev) {struct ieee80211_sub_if_data *sdata =IEEE80211_DEV_TO_SUB_IF (dev); -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;int flushed;int i;
@@ -656,7 +656,7 @@ static u16 ieee80211_monitor_select_queue(struct net_device *dev, struct sk_buff *skb) {struct ieee80211_sub_if_data *sdata =IEEE80211_DEV_TO_SUB_IF (dev); -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct ieee80211_hdr *hdr;struct ieee80211_radiotap_header *rtap = (void *)skb->data;u8 *p;
@@ -707,7 +707,7 @@ static void ieee80211_iface_work(struct work_struct *work) {struct ieee80211_sub_if_data *sdata = container_of(work, struct ieee80211_sub_if_data, work); -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct sk_buff *skb;struct sta_info *sta;struct ieee80211_ra_tid *ra_tid;
@@ -904,7 +904,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata,static int ieee80211_runtime_change_iftype (struct ieee80211_sub_if_data *sdata,enum nl80211_iftype type) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;int ret, err;enum nl80211_iftype internal_type = type;bool p2p = false;
@@ -1008,7 +1008,7 @@ int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata,return 0 ; } -static void ieee80211_assign_perm_addr (struct ieee80211_local *local, +static void ieee80211_assign_perm_addr (struct mac80211_local *local,struct net_device *dev,enum nl80211_iftype type) {
@@ -1120,7 +1120,7 @@ static void ieee80211_assign_perm_addr(struct ieee80211_local *local,mutex_unlock (&local->iflist_mtx); } -int ieee80211_if_add (struct ieee80211_local *local,const char *name, +int ieee80211_if_add (struct mac80211_local *local,const char *name,struct net_device **new_dev,enum nl80211_iftype type,struct vif_params *params) {
@@ -1222,7 +1222,7 @@ void ieee80211_if_remove(struct ieee80211_sub_if_data *sdata)* Remove all interfaces, may only be called at hardware unregistration * time because it doesn't do RCU-safe list removals. */ -void ieee80211_remove_interfaces (struct ieee80211_local *local) +void ieee80211_remove_interfaces (struct mac80211_local *local) {struct ieee80211_sub_if_data *sdata, *tmp;LIST_HEAD (unreg_list);
@@ -1240,7 +1240,7 @@ void ieee80211_remove_interfaces(struct ieee80211_local *local)list_del (&unreg_list); } -static u32 ieee80211_idle_off (struct ieee80211_local *local, +static u32 ieee80211_idle_off (struct mac80211_local *local,const char *reason) {if (!(local->hw.conf.flags &IEEE80211_CONF_IDLE ))
@@ -1254,7 +1254,7 @@ static u32 ieee80211_idle_off(struct ieee80211_local *local,return IEEE80211_CONF_CHANGE_IDLE ; } -static u32 ieee80211_idle_on (struct ieee80211_local *local) +static u32 ieee80211_idle_on (struct mac80211_local *local) {if (local->hw.conf.flags &IEEE80211_CONF_IDLE )return 0 ;
@@ -1269,7 +1269,7 @@ static u32 ieee80211_idle_on(struct ieee80211_local *local)return IEEE80211_CONF_CHANGE_IDLE ; } -u32 __ieee80211_recalc_idle (struct ieee80211_local *local) +u32 __ieee80211_recalc_idle (struct mac80211_local *local) {struct ieee80211_sub_if_data *sdata;int count =0 ;
@@ -1354,7 +1354,7 @@ u32 __ieee80211_recalc_idle(struct ieee80211_local *local)return 0 ; } -void ieee80211_recalc_idle (struct ieee80211_local *local) +void ieee80211_recalc_idle (struct mac80211_local *local) {u32 chg;
net/mac80211/key.c +2 -2
@@ -48,7 +48,7 @@static const u8 bcast_addr[ETH_ALEN ] = {0xFF ,0xFF ,0xFF ,0xFF ,0xFF ,0xFF }; -static void assert_key_lock (struct ieee80211_local *local) +static void assert_key_lock (struct mac80211_local *local) {lockdep_assert_held (&local->key_mtx); }
@@ -492,7 +492,7 @@ void __ieee80211_key_free(struct ieee80211_key *key)__ieee80211_key_destroy (key); } -void ieee80211_key_free (struct ieee80211_local *local, +void ieee80211_key_free (struct mac80211_local *local,struct ieee80211_key *key) {mutex_lock (&local->key_mtx);
net/mac80211/key.h +3 -3
@@ -31,7 +31,7 @@#define NUM_RX_DATA_QUEUES 17 -struct ieee80211_local ; +struct mac80211_local ;struct ieee80211_sub_if_data ;struct sta_info ;
@@ -59,7 +59,7 @@ struct tkip_ctx { };struct ieee80211_key { -struct ieee80211_local *local; +struct mac80211_local *local;struct ieee80211_sub_if_data *sdata;struct sta_info *sta;
@@ -136,7 +136,7 @@ int __must_check ieee80211_key_link(struct ieee80211_key *key,struct ieee80211_sub_if_data *sdata, struct sta_info *sta);void __ieee80211_key_free (struct ieee80211_key *key); -void ieee80211_key_free (struct ieee80211_local *local, +void ieee80211_key_free (struct mac80211_local *local,struct ieee80211_key *key);void ieee80211_set_default_key (struct ieee80211_sub_if_data *sdata,int idx,bool uni,bool multi);
net/mac80211/led.c +17 -17
@@ -11,7 +11,7 @@#include <linux/slab.h> #include "led.h" -void ieee80211_led_rx (struct ieee80211_local *local) +void ieee80211_led_rx (struct mac80211_local *local) {if (unlikely (!local->rx_led))return ;
@@ -22,7 +22,7 @@ void ieee80211_led_rx(struct ieee80211_local *local) }/* q is 1 if a packet was enqueued, 0 if it has been transmitted */ -void ieee80211_led_tx (struct ieee80211_local *local,int q) +void ieee80211_led_tx (struct mac80211_local *local,int q) {if (unlikely (!local->tx_led))return ;
@@ -34,7 +34,7 @@ void ieee80211_led_tx(struct ieee80211_local *local, int q)led_trigger_event (local->tx_led,LED_FULL ); } -void ieee80211_led_assoc (struct ieee80211_local *local,bool associated) +void ieee80211_led_assoc (struct mac80211_local *local,bool associated) {if (unlikely (!local->assoc_led))return ;
@@ -44,7 +44,7 @@ void ieee80211_led_assoc(struct ieee80211_local *local, bool associated)led_trigger_event (local->assoc_led,LED_OFF ); } -void ieee80211_led_radio (struct ieee80211_local *local,bool enabled) +void ieee80211_led_radio (struct mac80211_local *local,bool enabled) {if (unlikely (!local->radio_led))return ;
@@ -54,7 +54,7 @@ void ieee80211_led_radio(struct ieee80211_local *local, bool enabled)led_trigger_event (local->radio_led,LED_OFF ); } -void ieee80211_led_names (struct ieee80211_local *local) +void ieee80211_led_names (struct mac80211_local *local) {snprintf (local->rx_led_name,sizeof (local->rx_led_name),"%srx" ,wiphy_name (local->hw.wiphy));
@@ -66,7 +66,7 @@ void ieee80211_led_names(struct ieee80211_local *local) "%sradio", wiphy_name(local->hw.wiphy)); } -void ieee80211_led_init (struct ieee80211_local *local) +void ieee80211_led_init (struct mac80211_local *local) { local->rx_led =kzalloc (sizeof (struct led_trigger ),GFP_KERNEL );if (local->rx_led) {
@@ -112,7 +112,7 @@ void ieee80211_led_init(struct ieee80211_local *local) } } -void ieee80211_led_exit (struct ieee80211_local *local) +void ieee80211_led_exit (struct mac80211_local *local) {if (local->radio_led) {led_trigger_unregister (local->radio_led);
@@ -139,7 +139,7 @@ void ieee80211_led_exit(struct ieee80211_local *local)char *__ieee80211_get_radio_led_name (struct ieee80211_hw *hw) { -struct ieee80211_local *local =hw_to_local (hw); +struct mac80211_local *local =hw_to_local (hw);return local->radio_led_name; }
@@ -147,7 +147,7 @@ EXPORT_SYMBOL(__ieee80211_get_radio_led_name);char *__ieee80211_get_assoc_led_name (struct ieee80211_hw *hw) { -struct ieee80211_local *local =hw_to_local (hw); +struct mac80211_local *local =hw_to_local (hw);return local->assoc_led_name; }
@@ -155,7 +155,7 @@ EXPORT_SYMBOL(__ieee80211_get_assoc_led_name);char *__ieee80211_get_tx_led_name (struct ieee80211_hw *hw) { -struct ieee80211_local *local =hw_to_local (hw); +struct mac80211_local *local =hw_to_local (hw);return local->tx_led_name; }
@@ -163,13 +163,13 @@ EXPORT_SYMBOL(__ieee80211_get_tx_led_name);char *__ieee80211_get_rx_led_name (struct ieee80211_hw *hw) { -struct ieee80211_local *local =hw_to_local (hw); +struct mac80211_local *local =hw_to_local (hw);return local->rx_led_name; }EXPORT_SYMBOL (__ieee80211_get_rx_led_name); -static unsigned long tpt_trig_traffic (struct ieee80211_local *local, +static unsigned long tpt_trig_traffic (struct mac80211_local *local,struct tpt_led_trigger *tpt_trig) {unsigned long traffic, delta;
@@ -183,7 +183,7 @@ static unsigned long tpt_trig_traffic(struct ieee80211_local *local,static void tpt_trig_timer (unsigned long data) { -struct ieee80211_local *local = (void *)data; +struct mac80211_local *local = (void *)data;struct tpt_led_trigger *tpt_trig = local->tpt_led_trigger;struct led_classdev *led_cdev;unsigned long on, off, tpt;
@@ -220,7 +220,7 @@ char *__ieee80211_create_tpt_led_trigger(struct ieee80211_hw *hw,const struct ieee80211_tpt_blink *blink_table, unsigned int blink_table_len) { - struct ieee80211_local *local = hw_to_local(hw); + struct mac80211_local *local = hw_to_local(hw);struct tpt_led_trigger *tpt_trig;if (WARN_ON (local->tpt_led_trigger))
@@ -247,7 +247,7 @@ char *__ieee80211_create_tpt_led_trigger(struct ieee80211_hw *hw, }EXPORT_SYMBOL (__ieee80211_create_tpt_led_trigger); -static void ieee80211_start_tpt_led_trig (struct ieee80211_local *local) +static void ieee80211_start_tpt_led_trig (struct mac80211_local *local) {struct tpt_led_trigger *tpt_trig = local->tpt_led_trigger;
@@ -262,7 +262,7 @@ static void ieee80211_start_tpt_led_trig(struct ieee80211_local *local)mod_timer (&tpt_trig->timer,round_jiffies (jiffies +HZ )); } -static void ieee80211_stop_tpt_led_trig (struct ieee80211_local *local) +static void ieee80211_stop_tpt_led_trig (struct mac80211_local *local) {struct tpt_led_trigger *tpt_trig = local->tpt_led_trigger;struct led_classdev *led_cdev;
@@ -279,7 +279,7 @@ static void ieee80211_stop_tpt_led_trig(struct ieee80211_local *local)read_unlock (&tpt_trig->trig.leddev_list_lock); } -void ieee80211_mod_tpt_led_trig (struct ieee80211_local *local, +void ieee80211_mod_tpt_led_trig (struct mac80211_local *local,unsigned int types_on,unsigned int types_off) {struct tpt_led_trigger *tpt_trig = local->tpt_led_trigger;
net/mac80211/led.h +18 -18
@@ -12,42 +12,42 @@#include "mac80211_i.h" #ifdef CONFIG_MAC80211_LEDS -void ieee80211_led_rx (struct ieee80211_local *local); -void ieee80211_led_tx (struct ieee80211_local *local,int q); -void ieee80211_led_assoc (struct ieee80211_local *local, +void ieee80211_led_rx (struct mac80211_local *local); +void ieee80211_led_tx (struct mac80211_local *local,int q); +void ieee80211_led_assoc (struct mac80211_local *local,bool associated); -void ieee80211_led_radio (struct ieee80211_local *local, +void ieee80211_led_radio (struct mac80211_local *local,bool enabled); -void ieee80211_led_names (struct ieee80211_local *local); -void ieee80211_led_init (struct ieee80211_local *local); -void ieee80211_led_exit (struct ieee80211_local *local); -void ieee80211_mod_tpt_led_trig (struct ieee80211_local *local, +void ieee80211_led_names (struct mac80211_local *local); +void ieee80211_led_init (struct mac80211_local *local); +void ieee80211_led_exit (struct mac80211_local *local); +void ieee80211_mod_tpt_led_trig (struct mac80211_local *local,unsigned int types_on,unsigned int types_off);#else -static inline void ieee80211_led_rx (struct ieee80211_local *local) +static inline void ieee80211_led_rx (struct mac80211_local *local) { } -static inline void ieee80211_led_tx (struct ieee80211_local *local,int q) +static inline void ieee80211_led_tx (struct mac80211_local *local,int q) { } -static inline void ieee80211_led_assoc (struct ieee80211_local *local, +static inline void ieee80211_led_assoc (struct mac80211_local *local,bool associated) { } -static inline void ieee80211_led_radio (struct ieee80211_local *local, +static inline void ieee80211_led_radio (struct mac80211_local *local,bool enabled) { } -static inline void ieee80211_led_names (struct ieee80211_local *local) +static inline void ieee80211_led_names (struct mac80211_local *local) { } -static inline void ieee80211_led_init (struct ieee80211_local *local) +static inline void ieee80211_led_init (struct mac80211_local *local) { } -static inline void ieee80211_led_exit (struct ieee80211_local *local) +static inline void ieee80211_led_exit (struct mac80211_local *local) { } -static inline void ieee80211_mod_tpt_led_trig (struct ieee80211_local *local, +static inline void ieee80211_mod_tpt_led_trig (struct mac80211_local *local,unsigned int types_on,unsigned int types_off) {
@@ -55,7 +55,7 @@ static inline void ieee80211_mod_tpt_led_trig(struct ieee80211_local *local,#endif static inline void -ieee80211_tpt_led_trig_tx (struct ieee80211_local *local,__le16 fc,int bytes) +ieee80211_tpt_led_trig_tx (struct mac80211_local *local,__le16 fc,int bytes) {#ifdef CONFIG_MAC80211_LEDS if (local->tpt_led_trigger &&ieee80211_is_data (fc))
@@ -64,7 +64,7 @@ ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, __le16 fc, int bytes) }static inline void -ieee80211_tpt_led_trig_rx (struct ieee80211_local *local,__le16 fc,int bytes) +ieee80211_tpt_led_trig_rx (struct mac80211_local *local,__le16 fc,int bytes) {#ifdef CONFIG_MAC80211_LEDS if (local->tpt_led_trigger &&ieee80211_is_data (fc))
net/mac80211/mac80211_i.h +45 -45
270 lines not on this page · raw message
net/mac80211/main.c +24 -24
160 lines not on this page · raw message
net/mac80211/mesh.c +8 -8
@@ -44,7 +44,7 @@ void ieee80211s_stop(void)static void ieee80211_mesh_housekeeping_timer (unsigned long data) {struct ieee80211_sub_if_data *sdata = (void *) data; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;set_bit (MESH_WORK_HOUSEKEEPING , &ifmsh->wrkq_flags);
@@ -206,7 +206,7 @@ int mesh_rmc_check(u8 *sa, struct ieee80211s_hdr *mesh_hdr,void mesh_mgmt_ies_add (struct sk_buff *skb,struct ieee80211_sub_if_data *sdata) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct ieee80211_supported_band *sband;u8 *pos;int len, i, rate;
@@ -293,7 +293,7 @@ static void ieee80211_mesh_path_timer(unsigned long data)struct ieee80211_sub_if_data *sdata = (struct ieee80211_sub_if_data *) data;struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;if (local->quiescing) {set_bit (TMR_RUNNING_MP , &ifmsh->timers_running);
@@ -308,7 +308,7 @@ static void ieee80211_mesh_path_root_timer(unsigned long data)struct ieee80211_sub_if_data *sdata = (struct ieee80211_sub_if_data *) data;struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;set_bit (MESH_WORK_ROOT , &ifmsh->wrkq_flags);
@@ -460,7 +460,7 @@ void ieee80211_mesh_restart(struct ieee80211_sub_if_data *sdata)void ieee80211_start_mesh (struct ieee80211_sub_if_data *sdata) {struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local; local->fif_other_bss++;/* mesh ifaces must set allmulti to forward mcast traffic */
@@ -481,7 +481,7 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata)void ieee80211_stop_mesh (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; ifmsh->mesh_id_len =0 ;
@@ -510,7 +510,7 @@ static void ieee80211_mesh_rx_bcn_presp(struct ieee80211_sub_if_data *sdata,size_t len, struct ieee80211_rx_status *rx_status) { - struct ieee80211_local *local = sdata->local; + struct mac80211_local *local = sdata->local;struct ieee802_11_elems elems;struct ieee80211_channel *channel;u32 supp_rates =0 ;
@@ -611,7 +611,7 @@ void ieee80211_mesh_work(struct ieee80211_sub_if_data *sdata)ieee80211_mesh_rootpath (sdata); } -void ieee80211_mesh_notify_scan_completed (struct ieee80211_local *local) +void ieee80211_mesh_notify_scan_completed (struct mac80211_local *local) {struct ieee80211_sub_if_data *sdata;
net/mac80211/mesh.h +3 -3
@@ -202,7 +202,7 @@ void mesh_mgmt_ies_add(struct sk_buff *skb,void mesh_rmc_free (struct ieee80211_sub_if_data *sdata);int mesh_rmc_init (struct ieee80211_sub_if_data *sdata);void ieee80211s_init (void ); -void ieee80211s_update_metric (struct ieee80211_local *local, +void ieee80211s_update_metric (struct mac80211_local *local,struct sta_info *stainfo,struct sk_buff *skb);void ieee80211s_stop (void );void ieee80211_mesh_init_sdata (struct ieee80211_sub_if_data *sdata);
@@ -289,7 +289,7 @@ static inline bool mesh_path_sel_is_hwmp(struct ieee80211_sub_if_data *sdata)return sdata->u.mesh.mesh_pp_id ==IEEE80211_PATH_PROTOCOL_HWMP ; } -void ieee80211_mesh_notify_scan_completed (struct ieee80211_local *local); +void ieee80211_mesh_notify_scan_completed (struct mac80211_local *local);void ieee80211_mesh_quiesce (struct ieee80211_sub_if_data *sdata);void ieee80211_mesh_restart (struct ieee80211_sub_if_data *sdata);
@@ -298,7 +298,7 @@ void mesh_plink_restart(struct sta_info *sta);#else #define mesh_allocated 0static inline void -ieee80211_mesh_notify_scan_completed (struct ieee80211_local *local) {} +ieee80211_mesh_notify_scan_completed (struct mac80211_local *local) {}static inline void ieee80211_mesh_quiesce (struct ieee80211_sub_if_data *sdata) {}static inline void ieee80211_mesh_restart (struct ieee80211_sub_if_data *sdata)
net/mac80211/mesh_hwmp.c +5 -5
@@ -110,7 +110,7 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, __le32 lifetime, __le32 metric, __le32 preq_id, struct ieee80211_sub_if_data *sdata) { - struct ieee80211_local *local = sdata->local; + struct mac80211_local *local = sdata->local;struct sk_buff *skb =dev_alloc_skb (local->hw.extra_tx_headroom +400 );struct ieee80211_mgmt *mgmt;u8 *pos;
@@ -204,7 +204,7 @@ int mesh_path_error_tx(u8 ttl, u8 *target, __le32 target_sn, __le16 target_rcode, const u8 *ra, struct ieee80211_sub_if_data *sdata) { - struct ieee80211_local *local = sdata->local; + struct mac80211_local *local = sdata->local;struct sk_buff *skb =dev_alloc_skb (local->hw.extra_tx_headroom +400 );struct ieee80211_mgmt *mgmt;u8 *pos;
@@ -255,7 +255,7 @@ int mesh_path_error_tx(u8 ttl, u8 *target, __le32 target_sn,return 0 ; } -void ieee80211s_update_metric (struct ieee80211_local *local, +void ieee80211s_update_metric (struct mac80211_local *local,struct sta_info *stainfo,struct sk_buff *skb) {struct ieee80211_tx_info *txinfo =IEEE80211_SKB_CB (skb);
@@ -273,7 +273,7 @@ void ieee80211s_update_metric(struct ieee80211_local *local,mesh_plink_broken (stainfo); } -static u32 airtime_link_metric_get (struct ieee80211_local *local, +static u32 airtime_link_metric_get (struct mac80211_local *local,struct sta_info *sta) {struct ieee80211_supported_band *sband;
@@ -325,7 +325,7 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt, u8 *hwmp_ie, enum mpath_frame_type action) { - struct ieee80211_local *local = sdata->local; + struct mac80211_local *local = sdata->local;struct mesh_path *mpath;struct sta_info *sta;bool fresh_info;
net/mac80211/mesh_pathtbl.c +2 -2
@@ -316,7 +316,7 @@ struct mesh_path *mesh_path_lookup_by_idx(int idx, struct ieee80211_sub_if_dataint mesh_path_add (u8 *dst,struct ieee80211_sub_if_data *sdata) {struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct mesh_table *tbl;struct mesh_path *mpath, *new_mpath;struct mpath_node *node, *new_node;
@@ -448,7 +448,7 @@ void mesh_mpp_table_grow(void)int mpp_path_add (u8 *dst,u8 *mpp,struct ieee80211_sub_if_data *sdata) {struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct mesh_table *tbl;struct mesh_path *mpath, *new_mpath;struct mpath_node *node, *new_node;
net/mac80211/mesh_plink.c +4 -4
@@ -95,7 +95,7 @@ static inline void mesh_plink_fsm_restart(struct sta_info *sta)static struct sta_info *mesh_plink_alloc (struct ieee80211_sub_if_data *sdata,u8 *hw_addr,u32 rates) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct sta_info *sta;if (local->num_sta >=MESH_MAX_PLINKS )
@@ -159,7 +159,7 @@ void mesh_plink_deactivate(struct sta_info *sta)static int mesh_plink_frame_tx (struct ieee80211_sub_if_data *sdata,enum plink_frame_type action,u8 *da,__le16 llid,__le16 plid,__le16 reason) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct sk_buff *skb =dev_alloc_skb (local->hw.extra_tx_headroom +400 + sdata->u.mesh.ie_len);struct ieee80211_mgmt *mgmt;
@@ -241,7 +241,7 @@ void mesh_neighbour_update(u8 *hw_addr, u32 rates,struct ieee80211_sub_if_data *sdata, struct ieee802_11_elems *elems) { - struct ieee80211_local *local = sdata->local; + struct mac80211_local *local = sdata->local;struct sta_info *sta;rcu_read_lock ();
@@ -418,7 +418,7 @@ void mesh_plink_block(struct sta_info *sta)void mesh_rx_plink_frame (struct ieee80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt,size_t len,struct ieee80211_rx_status *rx_status) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct ieee802_11_elems elems;struct sta_info *sta;enum plink_event event;
net/mac80211/mlme.c +32 -32
238 lines not on this page · raw message
net/mac80211/offchannel.c +12 -12
@@ -26,7 +26,7 @@static void ieee80211_offchannel_ps_enable (struct ieee80211_sub_if_data *sdata,bool tell_ap) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; local->offchannel_ps_enabled = false;
@@ -63,7 +63,7 @@ static void ieee80211_offchannel_ps_enable(struct ieee80211_sub_if_data *sdata,/* inform AP that we are awake again, unless power save is enabled */ static void ieee80211_offchannel_ps_disable (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;if (!local->ps_sdata)ieee80211_send_nullfunc (local, sdata,0 );
@@ -102,7 +102,7 @@ static void ieee80211_offchannel_ps_disable(struct ieee80211_sub_if_data *sdata)ieee80211_sta_reset_conn_monitor (sdata); } -void ieee80211_offchannel_stop_vifs (struct ieee80211_local *local, +void ieee80211_offchannel_stop_vifs (struct mac80211_local *local,bool offchannel_ps_enable) {struct ieee80211_sub_if_data *sdata;
@@ -137,7 +137,7 @@ void ieee80211_offchannel_stop_vifs(struct ieee80211_local *local,mutex_unlock (&local->iflist_mtx); } -void ieee80211_offchannel_enable_all_ps (struct ieee80211_local *local, +void ieee80211_offchannel_enable_all_ps (struct mac80211_local *local,bool tell_ap) {struct ieee80211_sub_if_data *sdata;
@@ -154,7 +154,7 @@ void ieee80211_offchannel_enable_all_ps(struct ieee80211_local *local,mutex_unlock (&local->iflist_mtx); } -void ieee80211_offchannel_return (struct ieee80211_local *local, +void ieee80211_offchannel_return (struct mac80211_local *local,bool enable_beaconing,bool offchannel_ps_disable) {
@@ -200,8 +200,8 @@ void ieee80211_offchannel_return(struct ieee80211_local *local,static void ieee80211_hw_roc_start (struct work_struct *work) { -struct ieee80211_local *local = - container_of(work, struct ieee80211_local, hw_roc_start); +struct mac80211_local *local = + container_of(work, struct mac80211_local, hw_roc_start);struct ieee80211_sub_if_data *sdata;mutex_lock (&local->mtx);
@@ -231,7 +231,7 @@ static void ieee80211_hw_roc_start(struct work_struct *work)void ieee80211_ready_on_channel (struct ieee80211_hw *hw) { -struct ieee80211_local *local =hw_to_local (hw); +struct mac80211_local *local =hw_to_local (hw);trace_api_ready_on_channel (local);
@@ -241,8 +241,8 @@ EXPORT_SYMBOL_GPL(ieee80211_ready_on_channel);static void ieee80211_hw_roc_done (struct work_struct *work) { -struct ieee80211_local *local = - container_of(work, struct ieee80211_local, hw_roc_done); +struct mac80211_local *local = + container_of(work, struct mac80211_local, hw_roc_done);mutex_lock (&local->mtx);
@@ -268,7 +268,7 @@ static void ieee80211_hw_roc_done(struct work_struct *work)void ieee80211_remain_on_channel_expired (struct ieee80211_hw *hw) { -struct ieee80211_local *local =hw_to_local (hw); +struct mac80211_local *local =hw_to_local (hw);trace_api_remain_on_channel_expired (local);
@@ -276,7 +276,7 @@ void ieee80211_remain_on_channel_expired(struct ieee80211_hw *hw) }EXPORT_SYMBOL_GPL (ieee80211_remain_on_channel_expired); -void ieee80211_hw_roc_setup (struct ieee80211_local *local) +void ieee80211_hw_roc_setup (struct mac80211_local *local) {INIT_WORK (&local->hw_roc_start, ieee80211_hw_roc_start);INIT_WORK (&local->hw_roc_done, ieee80211_hw_roc_done);
net/mac80211/pm.c +1 -1
@@ -8,7 +8,7 @@int __ieee80211_suspend (struct ieee80211_hw *hw,struct cfg80211_wowlan *wowlan) { -struct ieee80211_local *local =hw_to_local (hw); +struct mac80211_local *local =hw_to_local (hw);struct ieee80211_sub_if_data *sdata;struct sta_info *sta;
net/mac80211/rate.c +3 -3
@@ -150,7 +150,7 @@ static const struct file_operations rcname_ops = {#endif static struct rate_control_ref *rate_control_alloc (const char *name, -struct ieee80211_local *local) +struct mac80211_local *local) {struct dentry *debugfsdir =NULL ;struct rate_control_ref *ref;
@@ -364,7 +364,7 @@ void rate_control_put(struct rate_control_ref *ref)kref_put (&ref->kref, rate_control_release); } -int ieee80211_init_rate_ctrl_alg (struct ieee80211_local *local, +int ieee80211_init_rate_ctrl_alg (struct mac80211_local *local,const char *name) {struct rate_control_ref *ref, *old;
@@ -400,7 +400,7 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local,return 0 ; } -void rate_control_deinitialize (struct ieee80211_local *local) +void rate_control_deinitialize (struct mac80211_local *local) {struct rate_control_ref *ref;
net/mac80211/rate.h +6 -6
@@ -20,7 +20,7 @@#include "sta_info.h" struct rate_control_ref { -struct ieee80211_local *local; +struct mac80211_local *local;struct rate_control_ops *ops;void *priv;struct kref kref;
@@ -32,7 +32,7 @@ void rate_control_get_rate(struct ieee80211_sub_if_data *sdata,struct rate_control_ref *rate_control_get (struct rate_control_ref *ref);void rate_control_put (struct rate_control_ref *ref); -static inline void rate_control_tx_status (struct ieee80211_local *local, +static inline void rate_control_tx_status (struct mac80211_local *local,struct ieee80211_supported_band *sband,struct sta_info *sta,struct sk_buff *skb)
@@ -50,7 +50,7 @@ static inline void rate_control_tx_status(struct ieee80211_local *local,static inline void rate_control_rate_init (struct sta_info *sta) { -struct ieee80211_local *local = sta->sdata->local; +struct mac80211_local *local = sta->sdata->local;struct rate_control_ref *ref = sta->rate_ctrl;struct ieee80211_sta *ista = &sta->sta;void *priv_sta = sta->rate_ctrl_priv;
@@ -64,7 +64,7 @@ static inline void rate_control_rate_init(struct sta_info *sta) ref->ops->rate_init (ref->priv, sband, ista, priv_sta); } -static inline void rate_control_rate_update (struct ieee80211_local *local, +static inline void rate_control_rate_update (struct mac80211_local *local,struct ieee80211_supported_band *sband,struct sta_info *sta,u32 changed,enum nl80211_channel_type oper_chan_type)
@@ -115,9 +115,9 @@ static inline void rate_control_remove_sta_debugfs(struct sta_info *sta)/* Get a reference to the rate control algorithm. If `name' is NULL, get the * first available algorithm. */ -int ieee80211_init_rate_ctrl_alg (struct ieee80211_local *local, +int ieee80211_init_rate_ctrl_alg (struct mac80211_local *local,const char *name); -void rate_control_deinitialize (struct ieee80211_local *local); +void rate_control_deinitialize (struct mac80211_local *local);/* Rate control algorithms */
net/mac80211/rc80211_minstrel.c +2 -2
@@ -334,7 +334,7 @@ minstrel_get_rate(void *priv, struct ieee80211_sta *sta,static void -calc_rate_durations (struct minstrel_sta_info *mi,struct ieee80211_local *local, +calc_rate_durations (struct minstrel_sta_info *mi,struct mac80211_local *local,struct minstrel_rate *d,struct ieee80211_rate *rate) {int erp = !!(rate->flags &IEEE80211_RATE_ERP_G );
@@ -379,7 +379,7 @@ minstrel_rate_init(void *priv, struct ieee80211_supported_band *sband, {struct minstrel_sta_info *mi = priv_sta;struct minstrel_priv *mp = priv; -struct ieee80211_local *local =hw_to_local (mp->hw); +struct mac80211_local *local =hw_to_local (mp->hw);struct ieee80211_rate *ctl_rate;unsigned int i, n =0 ;unsigned int t_slot =9 ;/* FIXME: get real slot time */
net/mac80211/rc80211_minstrel_ht.c +1 -1
@@ -672,7 +672,7 @@ minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband,struct minstrel_ht_sta_priv *msp = priv_sta;struct minstrel_ht_sta *mi = &msp->ht;struct ieee80211_mcs_info *mcs = &sta->ht_cap.mcs; -struct ieee80211_local *local =hw_to_local (mp->hw); +struct mac80211_local *local =hw_to_local (mp->hw);u16 sta_cap = sta->ht_cap.cap;int n_supported =0 ;int ack_dur;
net/mac80211/rx.c +20 -20
@@ -34,7 +34,7 @@* This function cleans up the SKB, i.e. it removes all the stuff * only useful for monitoring. */ -static struct sk_buff *remove_monitor_info (struct ieee80211_local *local, +static struct sk_buff *remove_monitor_info (struct mac80211_local *local,struct sk_buff *skb) {if (local->hw.flags &IEEE80211_HW_RX_INCLUDES_FCS ) {
@@ -69,7 +69,7 @@ static inline int should_drop_frame(struct sk_buff *skb, }static int -ieee80211_rx_radiotap_len (struct ieee80211_local *local, +ieee80211_rx_radiotap_len (struct mac80211_local *local,struct ieee80211_rx_status *status) {int len;
@@ -97,7 +97,7 @@ ieee80211_rx_radiotap_len(struct ieee80211_local *local,* add a radiotap header containing all the fields which the hardware provided. */ static void -ieee80211_add_rx_radiotap_header (struct ieee80211_local *local, +ieee80211_add_rx_radiotap_header (struct mac80211_local *local,struct sk_buff *skb,struct ieee80211_rate *rate,int rtap_len)
@@ -216,7 +216,7 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,* radiotap header the driver might have added. */ static struct sk_buff * -ieee80211_rx_monitor (struct ieee80211_local *local,struct sk_buff *origskb, +ieee80211_rx_monitor (struct mac80211_local *local,struct sk_buff *origskb,struct ieee80211_rate *rate) {struct ieee80211_rx_status *status =IEEE80211_SKB_RXCB (origskb);
@@ -400,7 +400,7 @@ static void ieee80211_verify_alignment(struct ieee80211_rx_data *rx) static ieee80211_rx_result debug_noinlineieee80211_rx_h_passive_scan (struct ieee80211_rx_data *rx) { -struct ieee80211_local *local = rx->local; +struct mac80211_local *local = rx->local;struct ieee80211_rx_status *status =IEEE80211_SKB_RXCB (rx->skb);struct sk_buff *skb = rx->skb;
@@ -550,7 +550,7 @@ static void ieee80211_release_reorder_frame(struct ieee80211_hw *hw, struct tid_ampdu_rx *tid_agg_rx, int index) { -struct ieee80211_local *local =hw_to_local (hw); +struct mac80211_local *local =hw_to_local (hw);struct sk_buff *skb = tid_agg_rx->reorder_buf[index];struct ieee80211_rx_status *status;
@@ -742,7 +742,7 @@ static bool ieee80211_sta_manage_reorder_buf(struct ieee80211_hw *hw,static void ieee80211_rx_reorder_ampdu (struct ieee80211_rx_data *rx) {struct sk_buff *skb = rx->skb; -struct ieee80211_local *local = rx->local; +struct mac80211_local *local = rx->local;struct ieee80211_hw *hw = &local->hw;struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;struct sta_info *sta = rx->sta;
@@ -1059,7 +1059,7 @@ ieee80211_rx_h_decrypt(struct ieee80211_rx_data *rx) static ieee80211_rx_result debug_noinlineieee80211_rx_h_check_more_data (struct ieee80211_rx_data *rx) { -struct ieee80211_local *local; +struct mac80211_local *local;struct ieee80211_hdr *hdr;struct sk_buff *skb;
@@ -1092,7 +1092,7 @@ ieee80211_rx_h_check_more_data(struct ieee80211_rx_data *rx)static void ap_sta_ps_start (struct sta_info *sta) {struct ieee80211_sub_if_data *sdata = sta->sdata; -struct ieee80211_local *local = sdata->local; +struct mac80211_local *local = sdata->local;atomic_inc (&sdata->bss->num_sta_ps);
Lines of this file are not shown. View the raw message.
net/mac80211/scan.c +23 -23
46 lines not on this page · raw message
net/mac80211/sta_info.c +22 -22
44 lines not on this page · raw message
net/mac80211/tx.c +21 -21
42 lines not on this page · raw message
net/mac80211/util.c +30 -30
60 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
RFC PATCH 8/27 mac80211: rename ieee80211_fragment_entry to mac80211_fragment_entry
In reply to Kalle Valo--- net/mac80211/mac80211_i.h | 4 ++-- net/mac80211/rx.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-)
net/mac80211/mac80211_i.h +2 -2
@@ -62,7 +62,7 @@ struct mac80211_local;#define IEEE80211_DEFAULT_MAX_SP_LEN \ IEEE80211_WMM_IE_STA_QOSINFO_SP_ALL -struct ieee80211_fragment_entry { +struct mac80211_fragment_entry {unsigned long first_frag_time;unsigned int seq;unsigned int rx_queue;
@@ -565,7 +565,7 @@ struct ieee80211_sub_if_data {bool old_idle;/* Fragment table for host-based reassembly */ -struct ieee80211_fragment_entry fragments[IEEE80211_FRAGMENT_MAX ]; +struct mac80211_fragment_entry fragments[IEEE80211_FRAGMENT_MAX ];unsigned int fragment_next;struct ieee80211_key __rcu *keys[NUM_DEFAULT_KEYS +NUM_DEFAULT_MGMT_KEYS ];
net/mac80211/rx.c +5 -5
@@ -1254,12 +1254,12 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx)return RX_CONTINUE ; }/* ieee80211_rx_h_sta_process */ -static inline struct ieee80211_fragment_entry * +static inline struct mac80211_fragment_entry *ieee80211_reassemble_add (struct ieee80211_sub_if_data *sdata,unsigned int frag,unsigned int seq,int rx_queue,struct sk_buff **skb) { -struct ieee80211_fragment_entry *entry; +struct mac80211_fragment_entry *entry;int idx; idx = sdata->fragment_next;
@@ -1293,12 +1293,12 @@ ieee80211_reassemble_add(struct ieee80211_sub_if_data *sdata,return entry; } -static inline struct ieee80211_fragment_entry * +static inline struct mac80211_fragment_entry *ieee80211_reassemble_find (struct ieee80211_sub_if_data *sdata,unsigned int frag,unsigned int seq,int rx_queue,struct ieee80211_hdr *hdr) { -struct ieee80211_fragment_entry *entry; +struct mac80211_fragment_entry *entry;int i, idx; idx = sdata->fragment_next;
@@ -1343,7 +1343,7 @@ ieee80211_rx_h_defragment(struct ieee80211_rx_data *rx)u16 sc;__le16 fc;unsigned int frag, seq; -struct ieee80211_fragment_entry *entry; +struct mac80211_fragment_entry *entry;struct sk_buff *skb;struct ieee80211_rx_status *status;
RFC PATCH 9/27 mac80211: rename ieee80211_bss to mac80211_bss
In reply to Kalle Valo--- net/mac80211/ibss.c | 6 +++--- net/mac80211/mac80211_i.h | 16 ++++++++-------- net/mac80211/main.c | 2 +- net/mac80211/mlme.c | 10 +++++----- net/mac80211/scan.c | 12 ++++++------ 5 files changed, 23 insertions(+), 23 deletions(-)
net/mac80211/ibss.c +3 -3
@@ -211,7 +211,7 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata, }static void ieee80211_sta_join_ibss (struct ieee80211_sub_if_data *sdata, -struct ieee80211_bss *bss) +struct mac80211_bss *bss) {struct cfg80211_bss *cbss = container_of((void *)bss, struct cfg80211_bss, priv);
@@ -260,7 +260,7 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata,struct mac80211_local *local = sdata->local;int freq;struct cfg80211_bss *cbss; -struct ieee80211_bss *bss; +struct mac80211_bss *bss;struct sta_info *sta;struct ieee80211_channel *channel;u64 beacon_timestamp, rx_timestamp;
@@ -600,7 +600,7 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata) capability);if (cbss) { -struct ieee80211_bss *bss; +struct mac80211_bss *bss; bss = (void *)cbss->priv;#ifdef CONFIG_MAC80211_IBSS_DEBUG
net/mac80211/mac80211_i.h +8 -8
@@ -74,7 +74,7 @@ struct mac80211_fragment_entry { }; -struct ieee80211_bss { +struct mac80211_bss {/* don't want to look up all the time */ size_t ssid_len;u8 ssid[IEEE80211_MAX_SSID_LEN ];
@@ -106,7 +106,7 @@ struct ieee80211_bss {u8 erp_value; }; -static inline u8 *bss_mesh_cfg (struct ieee80211_bss *bss) +static inline u8 *bss_mesh_cfg (struct mac80211_bss *bss) {#ifdef CONFIG_MAC80211_MESH return bss->mesh_cfg;
@@ -114,7 +114,7 @@ static inline u8 *bss_mesh_cfg(struct ieee80211_bss *bss)return NULL ; } -static inline u8 *bss_mesh_id (struct ieee80211_bss *bss) +static inline u8 *bss_mesh_id (struct mac80211_bss *bss) {#ifdef CONFIG_MAC80211_MESH return bss->mesh_id;
@@ -122,7 +122,7 @@ static inline u8 *bss_mesh_id(struct ieee80211_bss *bss)return NULL ; } -static inline u8 bss_mesh_id_len (struct ieee80211_bss *bss) +static inline u8 bss_mesh_id_len (struct mac80211_bss *bss) {#ifdef CONFIG_MAC80211_MESH return bss->mesh_id_len;
@@ -1104,7 +1104,7 @@ int ieee80211_max_network_latency(struct notifier_block *nb,int ieee80211_set_arp_filter (struct ieee80211_sub_if_data *sdata);void ieee80211_sta_process_chanswitch (struct ieee80211_sub_if_data *sdata,struct ieee80211_channel_sw_ie *sw_elem, -struct ieee80211_bss *bss, +struct mac80211_bss *bss,u64 timestamp);void ieee80211_sta_quiesce (struct ieee80211_sub_if_data *sdata);void ieee80211_sta_restart (struct ieee80211_sub_if_data *sdata);
@@ -1146,7 +1146,7 @@ ieee80211_rx_result ieee80211_scan_rx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb);void ieee80211_mlme_notify_scan_completed (struct mac80211_local *local); -struct ieee80211_bss * +struct mac80211_bss * ieee80211_bss_info_update(struct mac80211_local *local, struct ieee80211_rx_status *rx_status, struct ieee80211_mgmt *mgmt,
@@ -1154,11 +1154,11 @@ ieee80211_bss_info_update(struct mac80211_local *local,struct ieee802_11_elems *elems, struct ieee80211_channel *channel, bool beacon); -struct ieee80211_bss * +struct mac80211_bss *ieee80211_rx_bss_get (struct mac80211_local *local,u8 *bssid,int freq,u8 *ssid,u8 ssid_len);void ieee80211_rx_bss_put (struct mac80211_local *local, -struct ieee80211_bss *bss); +struct mac80211_bss *bss);/* scheduled scan handling */ int ieee80211_request_sched_scan_start(struct ieee80211_sub_if_data *sdata,
net/mac80211/main.c +1 -1
@@ -586,7 +586,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,if (!ops->set_key) wiphy->flags |=WIPHY_FLAG_IBSS_RSN ; - wiphy->bss_priv_size =sizeof (struct ieee80211_bss ); + wiphy->bss_priv_size =sizeof (struct mac80211_bss ); local =wiphy_priv (wiphy);
net/mac80211/mlme.c +5 -5
@@ -451,7 +451,7 @@ static void ieee80211_chswitch_timer(unsigned long data)void ieee80211_sta_process_chanswitch (struct ieee80211_sub_if_data *sdata,struct ieee80211_channel_sw_ie *sw_elem, -struct ieee80211_bss *bss, +struct mac80211_bss *bss,u64 timestamp) { struct cfg80211_bss *cbss =
@@ -708,7 +708,7 @@ void ieee80211_recalc_ps(struct mac80211_local *local, s32 latency)if (beaconint_us > latency) { local->ps_sdata =NULL ; }else { -struct ieee80211_bss *bss; +struct mac80211_bss *bss;int maxslp =1 ;u8 dtimper;
@@ -963,7 +963,7 @@ static void ieee80211_set_associated(struct ieee80211_sub_if_data *sdata, struct cfg80211_bss *cbss, u32 bss_info_changed) { -struct ieee80211_bss *bss = (void *)cbss->priv; +struct mac80211_bss *bss = (void *)cbss->priv;struct mac80211_local *local = sdata->local;struct ieee80211_bss_conf *bss_conf = &sdata->vif.bss_conf;
@@ -1608,7 +1608,7 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, {struct mac80211_local *local = sdata->local;int freq; -struct ieee80211_bss *bss; +struct mac80211_bss *bss;struct ieee80211_channel *channel;bool need_ps = false;
@@ -2413,7 +2413,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, struct cfg80211_assoc_request *req) {struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; -struct ieee80211_bss *bss = (void *)req->bss->priv; +struct mac80211_bss *bss = (void *)req->bss->priv;struct ieee80211_work *wk;const u8 *ssid;int i;
net/mac80211/scan.c +6 -6
@@ -27,7 +27,7 @@#define IEEE80211_CHANNEL_TIME (HZ / 33)#define IEEE80211_PASSIVE_CHANNEL_TIME (HZ / 8) -struct ieee80211_bss * +struct mac80211_bss *ieee80211_rx_bss_get (struct mac80211_local *local,u8 *bssid,int freq,u8 *ssid,u8 ssid_len) {
@@ -43,14 +43,14 @@ ieee80211_rx_bss_get(struct mac80211_local *local, u8 *bssid, int freq,static void ieee80211_rx_bss_free (struct cfg80211_bss *cbss) { -struct ieee80211_bss *bss = (void *)cbss->priv; +struct mac80211_bss *bss = (void *)cbss->priv;kfree (bss_mesh_id (bss));kfree (bss_mesh_cfg (bss)); }void ieee80211_rx_bss_put (struct mac80211_local *local, -struct ieee80211_bss *bss) +struct mac80211_bss *bss) {if (!bss)return ;
@@ -74,7 +74,7 @@ static bool is_uapsd_supported(struct ieee802_11_elems *elems)return qos_info &IEEE80211_WMM_IE_AP_QOSINFO_UAPSD ; } -struct ieee80211_bss * +struct mac80211_bss * ieee80211_bss_info_update(struct mac80211_local *local, struct ieee80211_rx_status *rx_status, struct ieee80211_mgmt *mgmt,
@@ -84,7 +84,7 @@ ieee80211_bss_info_update(struct mac80211_local *local, bool beacon) {struct cfg80211_bss *cbss; -struct ieee80211_bss *bss; +struct mac80211_bss *bss;int clen, srlen;s32 signal =0 ;
@@ -151,7 +151,7 @@ ieee80211_scan_rx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb) {struct ieee80211_rx_status *rx_status =IEEE80211_SKB_RXCB (skb);struct ieee80211_mgmt *mgmt; -struct ieee80211_bss *bss; +struct mac80211_bss *bss;u8 *elements;struct ieee80211_channel *channel;size_t baselen;
RFC PATCH 10/27 mac80211: rename ieee80211_tx_data to mac80211_tx_data
In reply to Kalle Valo--- net/mac80211/mac80211_i.h | 4 ++-- net/mac80211/tx.c | 40 ++++++++++++++++++++-------------------- net/mac80211/util.c | 2 +- net/mac80211/wep.c | 4 ++-- net/mac80211/wep.h | 2 +- net/mac80211/wpa.c | 12 ++++++------ net/mac80211/wpa.h | 8 ++++---- 7 files changed, 36 insertions(+), 36 deletions(-)
net/mac80211/mac80211_i.h +2 -2
@@ -140,7 +140,7 @@ typedef unsigned __bitwise__ ieee80211_tx_result;#define IEEE80211_TX_UNICAST BIT(1)#define IEEE80211_TX_PS_BUFFERED BIT(2) -struct ieee80211_tx_data { +struct mac80211_tx_data {struct sk_buff *skb;struct mac80211_local *local;struct ieee80211_sub_if_data *sdata;
@@ -1078,7 +1078,7 @@ static inline int ieee80211_bssid_match(const u8 *raddr, const u8 *addr)int ieee80211_hw_config (struct mac80211_local *local,u32 changed); -void ieee80211_tx_set_protected (struct ieee80211_tx_data *tx); +void ieee80211_tx_set_protected (struct mac80211_tx_data *tx);void ieee80211_bss_info_change_notify (struct ieee80211_sub_if_data *sdata,u32 changed);void ieee80211_configure_filter (struct mac80211_local *local);
net/mac80211/tx.c +20 -20
@@ -35,7 +35,7 @@/* misc utils */ -static __le16 ieee80211_duration (struct ieee80211_tx_data *tx,int group_addr, +static __le16 ieee80211_duration (struct mac80211_tx_data *tx,int group_addr,int next_frag_len) {int rate, mrate, erp, dur, i;
@@ -177,7 +177,7 @@ static inline int is_ieee80211_device(struct mac80211_local *local,/* tx handlers */ static ieee80211_tx_result debug_noinline -ieee80211_tx_h_dynamic_ps (struct ieee80211_tx_data *tx) +ieee80211_tx_h_dynamic_ps (struct mac80211_tx_data *tx) {struct mac80211_local *local = tx->local;struct ieee80211_if_managed *ifmgd;
@@ -248,7 +248,7 @@ ieee80211_tx_h_dynamic_ps(struct ieee80211_tx_data *tx) } static ieee80211_tx_result debug_noinline -ieee80211_tx_h_check_assoc (struct ieee80211_tx_data *tx) +ieee80211_tx_h_check_assoc (struct mac80211_tx_data *tx) {struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
@@ -362,7 +362,7 @@ static void purge_old_ps_buffers(struct mac80211_local *local) }static ieee80211_tx_result -ieee80211_tx_h_multicast_ps_buf (struct ieee80211_tx_data *tx) +ieee80211_tx_h_multicast_ps_buf (struct mac80211_tx_data *tx) {struct ieee80211_tx_info *info =IEEE80211_SKB_CB (tx->skb);struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
@@ -429,7 +429,7 @@ static int ieee80211_use_mfp(__le16 fc, struct sta_info *sta, }static ieee80211_tx_result -ieee80211_tx_h_unicast_ps_buf (struct ieee80211_tx_data *tx) +ieee80211_tx_h_unicast_ps_buf (struct mac80211_tx_data *tx) {struct sta_info *sta = tx->sta;struct ieee80211_tx_info *info =IEEE80211_SKB_CB (tx->skb);
@@ -502,7 +502,7 @@ ieee80211_tx_h_unicast_ps_buf(struct ieee80211_tx_data *tx) } static ieee80211_tx_result debug_noinline -ieee80211_tx_h_ps_buf (struct ieee80211_tx_data *tx) +ieee80211_tx_h_ps_buf (struct mac80211_tx_data *tx) {if (unlikely (tx->flags &IEEE80211_TX_PS_BUFFERED ))return TX_CONTINUE ;
@@ -514,7 +514,7 @@ ieee80211_tx_h_ps_buf(struct ieee80211_tx_data *tx) } static ieee80211_tx_result debug_noinline -ieee80211_tx_h_check_control_port_protocol (struct ieee80211_tx_data *tx) +ieee80211_tx_h_check_control_port_protocol (struct mac80211_tx_data *tx) {struct ieee80211_tx_info *info =IEEE80211_SKB_CB (tx->skb);
@@ -526,7 +526,7 @@ ieee80211_tx_h_check_control_port_protocol(struct ieee80211_tx_data *tx) } static ieee80211_tx_result debug_noinline -ieee80211_tx_h_select_key (struct ieee80211_tx_data *tx) +ieee80211_tx_h_select_key (struct mac80211_tx_data *tx) {struct ieee80211_key *key =NULL ;struct ieee80211_tx_info *info =IEEE80211_SKB_CB (tx->skb);
@@ -598,7 +598,7 @@ ieee80211_tx_h_select_key(struct ieee80211_tx_data *tx) } static ieee80211_tx_result debug_noinline -ieee80211_tx_h_rate_ctrl (struct ieee80211_tx_data *tx) +ieee80211_tx_h_rate_ctrl (struct mac80211_tx_data *tx) {struct ieee80211_tx_info *info =IEEE80211_SKB_CB (tx->skb);struct ieee80211_hdr *hdr = (void *)tx->skb->data;
@@ -775,7 +775,7 @@ ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx) } static ieee80211_tx_result debug_noinline -ieee80211_tx_h_sequence (struct ieee80211_tx_data *tx) +ieee80211_tx_h_sequence (struct mac80211_tx_data *tx) {struct ieee80211_tx_info *info =IEEE80211_SKB_CB (tx->skb);struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
@@ -879,7 +879,7 @@ static int ieee80211_fragment(struct mac80211_local *local, } static ieee80211_tx_result debug_noinline -ieee80211_tx_h_fragment (struct ieee80211_tx_data *tx) +ieee80211_tx_h_fragment (struct mac80211_tx_data *tx) {struct sk_buff *skb = tx->skb;struct ieee80211_tx_info *info =IEEE80211_SKB_CB (skb);
@@ -951,7 +951,7 @@ ieee80211_tx_h_fragment(struct ieee80211_tx_data *tx) } static ieee80211_tx_result debug_noinline -ieee80211_tx_h_stats (struct ieee80211_tx_data *tx) +ieee80211_tx_h_stats (struct mac80211_tx_data *tx) {struct sk_buff *skb = tx->skb;
@@ -968,7 +968,7 @@ ieee80211_tx_h_stats(struct ieee80211_tx_data *tx) } static ieee80211_tx_result debug_noinline -ieee80211_tx_h_encrypt (struct ieee80211_tx_data *tx) +ieee80211_tx_h_encrypt (struct mac80211_tx_data *tx) {struct ieee80211_tx_info *info =IEEE80211_SKB_CB (tx->skb);
@@ -999,7 +999,7 @@ ieee80211_tx_h_encrypt(struct ieee80211_tx_data *tx) } static ieee80211_tx_result debug_noinline -ieee80211_tx_h_calculate_duration (struct ieee80211_tx_data *tx) +ieee80211_tx_h_calculate_duration (struct mac80211_tx_data *tx) {struct sk_buff *skb = tx->skb;struct ieee80211_hdr *hdr;
@@ -1026,7 +1026,7 @@ ieee80211_tx_h_calculate_duration(struct ieee80211_tx_data *tx)* deal with packet injection down monitor interface * with Radiotap Header -- only called for monitor mode interface */ -static bool __ieee80211_parse_tx_radiotap (struct ieee80211_tx_data *tx, +static bool __ieee80211_parse_tx_radiotap (struct mac80211_tx_data *tx,struct sk_buff *skb) {/*
@@ -1116,7 +1116,7 @@ static bool __ieee80211_parse_tx_radiotap(struct ieee80211_tx_data *tx,return true; } -static bool ieee80211_tx_prep_agg(struct ieee80211_tx_data *tx, +static bool ieee80211_tx_prep_agg(struct mac80211_tx_data *tx, struct sk_buff *skb, struct ieee80211_tx_info *info, struct tid_ampdu_tx *tid_tx,
@@ -1174,7 +1174,7 @@ static bool ieee80211_tx_prep_agg(struct ieee80211_tx_data *tx,*/ static ieee80211_tx_result ieee80211_tx_prepare (struct ieee80211_sub_if_data *sdata, -struct ieee80211_tx_data *tx, +struct mac80211_tx_data *tx,struct sk_buff *skb) {struct mac80211_local *local = sdata->local;
@@ -1380,7 +1380,7 @@ static bool __ieee80211_tx(struct mac80211_local *local, struct sk_buff **skbp,* Invoke TX handlers, return 0 on success and non-zero if the * frame was dropped or queued. */ -static int invoke_tx_handlers (struct ieee80211_tx_data *tx) +static int invoke_tx_handlers (struct mac80211_tx_data *tx) {struct sk_buff *skb = tx->skb;struct ieee80211_tx_info *info =IEEE80211_SKB_CB (skb);
@@ -1440,7 +1440,7 @@ static bool ieee80211_tx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, bool txpending) {struct mac80211_local *local = sdata->local; -struct ieee80211_tx_data tx; +struct mac80211_tx_data tx;ieee80211_tx_result res_prepare;struct ieee80211_tx_info *info =IEEE80211_SKB_CB (skb);bool result = true;
@@ -2479,7 +2479,7 @@ ieee80211_get_buffered_bc(struct ieee80211_hw *hw, {struct mac80211_local *local =hw_to_local (hw);struct sk_buff *skb =NULL ; -struct ieee80211_tx_data tx; +struct mac80211_tx_data tx;struct ieee80211_sub_if_data *sdata;struct ieee80211_if_ap *bss =NULL ;struct beacon_data *beacon;
net/mac80211/util.c +1 -1
@@ -94,7 +94,7 @@ u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len,return NULL ; } -void ieee80211_tx_set_protected (struct ieee80211_tx_data *tx) +void ieee80211_tx_set_protected (struct mac80211_tx_data *tx) {struct sk_buff *skb = tx->skb;struct ieee80211_hdr *hdr;
net/mac80211/wep.c +2 -2
@@ -303,7 +303,7 @@ ieee80211_crypto_wep_decrypt(struct ieee80211_rx_data *rx)return RX_CONTINUE ; } -static int wep_encrypt_skb (struct ieee80211_tx_data *tx,struct sk_buff *skb) +static int wep_encrypt_skb (struct mac80211_tx_data *tx,struct sk_buff *skb) {struct ieee80211_tx_info *info =IEEE80211_SKB_CB (skb);
@@ -324,7 +324,7 @@ static int wep_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb) }ieee80211_tx_result -ieee80211_crypto_wep_encrypt (struct ieee80211_tx_data *tx) +ieee80211_crypto_wep_encrypt (struct mac80211_tx_data *tx) {struct sk_buff *skb;
net/mac80211/wep.h +1 -1
@@ -30,6 +30,6 @@ bool ieee80211_wep_is_weak_iv(struct sk_buff *skb, struct ieee80211_key *key);ieee80211_rx_result ieee80211_crypto_wep_decrypt (struct ieee80211_rx_data *rx);ieee80211_tx_result -ieee80211_crypto_wep_encrypt (struct ieee80211_tx_data *tx); +ieee80211_crypto_wep_encrypt (struct mac80211_tx_data *tx);#endif /* WEP_H */
net/mac80211/wpa.c +6 -6
@@ -24,7 +24,7 @@#include "wpa.h" ieee80211_tx_result -ieee80211_tx_h_michael_mic_add (struct ieee80211_tx_data *tx) +ieee80211_tx_h_michael_mic_add (struct mac80211_tx_data *tx) {u8 *data, *key, *mic;size_t data_len;
@@ -160,7 +160,7 @@ mic_fail: } -static int tkip_encrypt_skb (struct ieee80211_tx_data *tx,struct sk_buff *skb) +static int tkip_encrypt_skb (struct mac80211_tx_data *tx,struct sk_buff *skb) {struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;struct ieee80211_key *key = tx->key;
@@ -212,7 +212,7 @@ static int tkip_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb)ieee80211_tx_result -ieee80211_crypto_tkip_encrypt (struct ieee80211_tx_data *tx) +ieee80211_crypto_tkip_encrypt (struct mac80211_tx_data *tx) {struct sk_buff *skb = tx->skb;
@@ -367,7 +367,7 @@ static inline void ccmp_hdr2pn(u8 *pn, u8 *hdr) } -static int ccmp_encrypt_skb (struct ieee80211_tx_data *tx,struct sk_buff *skb) +static int ccmp_encrypt_skb (struct mac80211_tx_data *tx,struct sk_buff *skb) {struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;struct ieee80211_key *key = tx->key;
@@ -427,7 +427,7 @@ static int ccmp_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb)ieee80211_tx_result -ieee80211_crypto_ccmp_encrypt (struct ieee80211_tx_data *tx) +ieee80211_crypto_ccmp_encrypt (struct mac80211_tx_data *tx) {struct sk_buff *skb = tx->skb;
@@ -522,7 +522,7 @@ static inline void bip_ipn_swap(u8 *d, const u8 *s)ieee80211_tx_result -ieee80211_crypto_aes_cmac_encrypt (struct ieee80211_tx_data *tx) +ieee80211_crypto_aes_cmac_encrypt (struct mac80211_tx_data *tx) {struct sk_buff *skb = tx->skb;struct ieee80211_tx_info *info =IEEE80211_SKB_CB (skb);
net/mac80211/wpa.h +4 -4
@@ -14,22 +14,22 @@#include "mac80211_i.h" ieee80211_tx_result -ieee80211_tx_h_michael_mic_add (struct ieee80211_tx_data *tx); +ieee80211_tx_h_michael_mic_add (struct mac80211_tx_data *tx);ieee80211_rx_result ieee80211_rx_h_michael_mic_verify (struct ieee80211_rx_data *rx);ieee80211_tx_result -ieee80211_crypto_tkip_encrypt (struct ieee80211_tx_data *tx); +ieee80211_crypto_tkip_encrypt (struct mac80211_tx_data *tx);ieee80211_rx_result ieee80211_crypto_tkip_decrypt (struct ieee80211_rx_data *rx);ieee80211_tx_result -ieee80211_crypto_ccmp_encrypt (struct ieee80211_tx_data *tx); +ieee80211_crypto_ccmp_encrypt (struct mac80211_tx_data *tx);ieee80211_rx_result ieee80211_crypto_ccmp_decrypt (struct ieee80211_rx_data *rx);ieee80211_tx_result -ieee80211_crypto_aes_cmac_encrypt (struct ieee80211_tx_data *tx); +ieee80211_crypto_aes_cmac_encrypt (struct mac80211_tx_data *tx);ieee80211_rx_result ieee80211_crypto_aes_cmac_decrypt (struct ieee80211_rx_data *rx);
RFC PATCH 11/27 mac80211: rename ieee80211_packet_rx_flags to mac80211_packet_rx_flags
In reply to Kalle Valo--- net/mac80211/mac80211_i.h | 30 +++++++++++++------------ net/mac80211/rx.c | 54 +++++++++++++++++++++++---------------------- 2 files changed, 42 insertions(+), 42 deletions(-)
net/mac80211/mac80211_i.h +15 -15
@@ -161,31 +161,31 @@ typedef unsigned __bitwise__ ieee80211_rx_result;#define RX_QUEUED ((__force ieee80211_rx_result) 3u)/** -* enum ieee80211_packet_rx_flags - packet RX flags -* @IEEE80211_RX_RA_MATCH: frame is destined to interface currently processed +* enum mac80211_packet_rx_flags - packet RX flags +* @MAC80211_RX_RA_MATCH: frame is destined to interface currently processed * (incl. multicast frames) -* @IEEE80211_RX_IN_SCAN: received while scanning -* @IEEE80211_RX_FRAGMENTED: fragmented frame -* @IEEE80211_RX_AMSDU: a-MSDU packet -* @IEEE80211_RX_MALFORMED_ACTION_FRM: action frame is malformed -* @IEEE80211_RX_DEFERRED_RELEASE: frame was subjected to receive reordering +* @MAC80211_RX_IN_SCAN: received while scanning +* @MAC80211_RX_FRAGMENTED: fragmented frame +* @MAC80211_RX_AMSDU: a-MSDU packet +* @MAC80211_RX_MALFORMED_ACTION_FRM: action frame is malformed +* @MAC80211_RX_DEFERRED_RELEASE: frame was subjected to receive reordering * * These are per-frame flags that are attached to a frame in the * @rx_flags field of &struct ieee80211_rx_status. */ -enum ieee80211_packet_rx_flags { -IEEE80211_RX_IN_SCAN =BIT (0 ), -IEEE80211_RX_RA_MATCH =BIT (1 ), -IEEE80211_RX_FRAGMENTED =BIT (2 ), -IEEE80211_RX_AMSDU =BIT (3 ), -IEEE80211_RX_MALFORMED_ACTION_FRM =BIT (4 ), -IEEE80211_RX_DEFERRED_RELEASE =BIT (5 ), +enum mac80211_packet_rx_flags { +MAC80211_RX_IN_SCAN =BIT (0 ), +MAC80211_RX_RA_MATCH =BIT (1 ), +MAC80211_RX_FRAGMENTED =BIT (2 ), +MAC80211_RX_AMSDU =BIT (3 ), +MAC80211_RX_MALFORMED_ACTION_FRM =BIT (4 ), +MAC80211_RX_DEFERRED_RELEASE =BIT (5 ), };/** * enum ieee80211_rx_flags - RX data flags * -* @IEEE80211_RX_CMNTR: received on cooked monitor already +* @MAC80211_RX_CMNTR: received on cooked monitor already * * These flags are used across handling multiple interfaces * for a single frame.
net/mac80211/rx.c +27 -27
206 lines not on this page · raw message
RFC PATCH 12/27 mac80211: rename ieee80211_rx_flags to mac80211_i_rx_flags
In reply to Kalle ValoAdd _i_ because, strangely enough, mac80211_i.h already has another definition of mac80211_rx_flags.
--- net/mac80211/mac80211_i.h | 6 +++--- net/mac80211/rx.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
net/mac80211/mac80211_i.h +3 -3
@@ -183,15 +183,15 @@ enum mac80211_packet_rx_flags { };/** -* enum ieee80211_rx_flags - RX data flags +* enum mac80211_i_rx_flags - RX data flags * * @MAC80211_RX_CMNTR: received on cooked monitor already * * These flags are used across handling multiple interfaces * for a single frame. */ -enum ieee80211_rx_flags { -IEEE80211_RX_CMNTR =BIT (0 ), +enum mac80211_i_rx_flags { +MAC80211_RX_CMNTR =BIT (0 ), };struct ieee80211_rx_data {
net/mac80211/rx.c +2 -2
@@ -2394,9 +2394,9 @@ static void ieee80211_rx_cooked_monitor(struct ieee80211_rx_data *rx,* If cooked monitor has been processed already, then * don't do it again. If not, set the flag. */ -if (rx->flags &IEEE80211_RX_CMNTR ) +if (rx->flags &MAC80211_RX_CMNTR ) goto out_free_skb; - rx->flags |=IEEE80211_RX_CMNTR ; + rx->flags |=MAC80211_RX_CMNTR ;if (skb_headroom (skb) <sizeof (*rthdr) &&pskb_expand_head (skb,sizeof (*rthdr),0 ,GFP_ATOMIC ))
RFC PATCH 13/27 mac80211: rename ieee80211_rx_data to mac80211_rx_data
In reply to Kalle Valo--- net/mac80211/mac80211_i.h | 2 + net/mac80211/rx.c | 70 +++++++++++++++++++++++---------------------- net/mac80211/wep.c | 2 + net/mac80211/wep.h | 2 + net/mac80211/wpa.c | 8 +++-- net/mac80211/wpa.h | 8 +++-- 6 files changed, 46 insertions(+), 46 deletions(-)
net/mac80211/mac80211_i.h +1 -1
@@ -194,7 +194,7 @@ enum mac80211_i_rx_flags { MAC80211_RX_CMNTR = BIT(0), }; -struct ieee80211_rx_data { +struct mac80211_rx_data {struct sk_buff *skb;struct mac80211_local *local;struct ieee80211_sub_if_data *sdata;
net/mac80211/rx.c +35 -35
280 lines not on this page · raw message
net/mac80211/wep.c +1 -1
@@ -281,7 +281,7 @@ bool ieee80211_wep_is_weak_iv(struct sk_buff *skb, struct ieee80211_key *key) }ieee80211_rx_result -ieee80211_crypto_wep_decrypt (struct ieee80211_rx_data *rx) +ieee80211_crypto_wep_decrypt (struct mac80211_rx_data *rx) {struct sk_buff *skb = rx->skb;struct ieee80211_rx_status *status =IEEE80211_SKB_RXCB (skb);
net/mac80211/wep.h +1 -1
@@ -28,7 +28,7 @@ int ieee80211_wep_decrypt_data(struct crypto_cipher *tfm, u8 *rc4key,bool ieee80211_wep_is_weak_iv (struct sk_buff *skb,struct ieee80211_key *key);ieee80211_rx_result -ieee80211_crypto_wep_decrypt (struct ieee80211_rx_data *rx); +ieee80211_crypto_wep_decrypt (struct mac80211_rx_data *rx);ieee80211_tx_result ieee80211_crypto_wep_encrypt (struct mac80211_tx_data *tx);
net/mac80211/wpa.c +4 -4
@@ -77,7 +77,7 @@ ieee80211_tx_h_michael_mic_add(struct mac80211_tx_data *tx)ieee80211_rx_result -ieee80211_rx_h_michael_mic_verify (struct ieee80211_rx_data *rx) +ieee80211_rx_h_michael_mic_verify (struct mac80211_rx_data *rx) {u8 *data, *key =NULL ;size_t data_len;
@@ -228,7 +228,7 @@ ieee80211_crypto_tkip_encrypt(struct mac80211_tx_data *tx)ieee80211_rx_result -ieee80211_crypto_tkip_decrypt (struct ieee80211_rx_data *rx) +ieee80211_crypto_tkip_decrypt (struct mac80211_rx_data *rx) {struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) rx->skb->data;int hdrlen, res, hwaccel =0 ;
@@ -443,7 +443,7 @@ ieee80211_crypto_ccmp_encrypt(struct mac80211_tx_data *tx)ieee80211_rx_result -ieee80211_crypto_ccmp_decrypt (struct ieee80211_rx_data *rx) +ieee80211_crypto_ccmp_decrypt (struct mac80211_rx_data *rx) {struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;int hdrlen;
@@ -565,7 +565,7 @@ ieee80211_crypto_aes_cmac_encrypt(struct mac80211_tx_data *tx)ieee80211_rx_result -ieee80211_crypto_aes_cmac_decrypt (struct ieee80211_rx_data *rx) +ieee80211_crypto_aes_cmac_decrypt (struct mac80211_rx_data *rx) {struct sk_buff *skb = rx->skb;struct ieee80211_rx_status *status =IEEE80211_SKB_RXCB (skb);
net/mac80211/wpa.h +4 -4
@@ -16,21 +16,21 @@ieee80211_tx_result ieee80211_tx_h_michael_mic_add (struct mac80211_tx_data *tx);ieee80211_rx_result -ieee80211_rx_h_michael_mic_verify (struct ieee80211_rx_data *rx); +ieee80211_rx_h_michael_mic_verify (struct mac80211_rx_data *rx);ieee80211_tx_result ieee80211_crypto_tkip_encrypt (struct mac80211_tx_data *tx);ieee80211_rx_result -ieee80211_crypto_tkip_decrypt (struct ieee80211_rx_data *rx); +ieee80211_crypto_tkip_decrypt (struct mac80211_rx_data *rx);ieee80211_tx_result ieee80211_crypto_ccmp_encrypt (struct mac80211_tx_data *tx);ieee80211_rx_result -ieee80211_crypto_ccmp_decrypt (struct ieee80211_rx_data *rx); +ieee80211_crypto_ccmp_decrypt (struct mac80211_rx_data *rx);ieee80211_tx_result ieee80211_crypto_aes_cmac_encrypt (struct mac80211_tx_data *tx);ieee80211_rx_result -ieee80211_crypto_aes_cmac_decrypt (struct ieee80211_rx_data *rx); +ieee80211_crypto_aes_cmac_decrypt (struct mac80211_rx_data *rx);#endif /* WPA_H */
RFC PATCH 14/27 mac80211: rename ieee80211_if_ap to mac80211_if_ap
In reply to Kalle Valo--- net/mac80211/mac80211_i.h | 6 +++--- net/mac80211/sta_info.c | 8 ++++---- net/mac80211/tx.c | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-)
net/mac80211/mac80211_i.h +3 -3
@@ -213,7 +213,7 @@ struct beacon_data {int dtim_period; }; -struct ieee80211_if_ap { +struct mac80211_if_ap {struct beacon_data __rcu *beacon;struct list_head vlans;
@@ -587,13 +587,13 @@ struct ieee80211_sub_if_data {* corresponding AP in VLAN mode, NULL for * all others (might be needed later in IBSS) */ -struct ieee80211_if_ap *bss; +struct mac80211_if_ap *bss;/* bitmap of allowed (non-MCS) rate indexes for rate control */ u32 rc_rateidx_mask[IEEE80211_NUM_BANDS ];union { -struct ieee80211_if_ap ap; +struct mac80211_if_ap ap;struct ieee80211_if_wds wds;struct ieee80211_if_vlan vlan;struct ieee80211_if_managed mgd;
net/mac80211/sta_info.c +4 -4
@@ -496,7 +496,7 @@ int sta_info_insert(struct sta_info *sta)return err; } -static inline void __bss_tim_set (struct ieee80211_if_ap *bss,u16 aid) +static inline void __bss_tim_set (struct mac80211_if_ap *bss,u16 aid) {/* * This format has been mandated by the IEEE specifications,
@@ -505,7 +505,7 @@ static inline void __bss_tim_set(struct ieee80211_if_ap *bss, u16 aid) bss->tim[aid /8 ] |= (1 << (aid %8 )); } -static inline void __bss_tim_clear (struct ieee80211_if_ap *bss,u16 aid) +static inline void __bss_tim_clear (struct mac80211_if_ap *bss,u16 aid) {/* * This format has been mandated by the IEEE specifications,
@@ -514,7 +514,7 @@ static inline void __bss_tim_clear(struct ieee80211_if_ap *bss, u16 aid) bss->tim[aid /8 ] &= ~(1 << (aid %8 )); } -static void __sta_info_set_tim_bit (struct ieee80211_if_ap *bss, +static void __sta_info_set_tim_bit (struct mac80211_if_ap *bss,struct sta_info *sta) {BUG_ON (!bss);
@@ -539,7 +539,7 @@ void sta_info_set_tim_bit(struct sta_info *sta)spin_unlock_irqrestore (&sta->local->sta_lock, flags); } -static void __sta_info_clear_tim_bit (struct ieee80211_if_ap *bss, +static void __sta_info_clear_tim_bit (struct mac80211_if_ap *bss,struct sta_info *sta) {BUG_ON (!bss);
net/mac80211/tx.c +4 -4
@@ -331,7 +331,7 @@ static void purge_old_ps_buffers(struct mac80211_local *local)rcu_read_lock ();list_for_each_entry_rcu (sdata, &local->interfaces, list) { -struct ieee80211_if_ap *ap; +struct mac80211_if_ap *ap;if (sdata->vif.type !=NL80211_IFTYPE_AP )continue ; ap = &sdata->u.ap;
@@ -2093,7 +2093,7 @@ void ieee80211_tx_pending(unsigned long data)/* functions for drivers to get certain frames */ -static void ieee80211_beacon_add_tim (struct ieee80211_if_ap *bss, +static void ieee80211_beacon_add_tim (struct mac80211_if_ap *bss,struct sk_buff *skb,struct beacon_data *beacon) {
@@ -2165,7 +2165,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw,struct sk_buff *skb =NULL ;struct ieee80211_tx_info *info;struct ieee80211_sub_if_data *sdata =NULL ; -struct ieee80211_if_ap *ap =NULL ; +struct mac80211_if_ap *ap =NULL ;struct beacon_data *beacon;struct ieee80211_supported_band *sband;enum ieee80211_band band = local->hw.conf.channel->band;
@@ -2481,7 +2481,7 @@ ieee80211_get_buffered_bc(struct ieee80211_hw *hw,struct sk_buff *skb =NULL ;struct mac80211_tx_data tx;struct ieee80211_sub_if_data *sdata; -struct ieee80211_if_ap *bss =NULL ; +struct mac80211_if_ap *bss =NULL ;struct beacon_data *beacon;struct ieee80211_tx_info *info;
RFC PATCH 15/27 mac80211: change ieee80211_if_wds and _vlan to use mac80211 prefix
In reply to Kalle Valo--- net/mac80211/mac80211_i.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
net/mac80211/mac80211_i.h +4 -4
@@ -228,12 +228,12 @@ struct mac80211_if_ap {bool dtim_bc_mc; }; -struct ieee80211_if_wds { +struct mac80211_if_wds {struct sta_info *sta;u8 remote_addr[ETH_ALEN ]; }; -struct ieee80211_if_vlan { +struct mac80211_if_vlan {struct list_head list;/* used for all tx if the VLAN is configured to 4-addr mode */
@@ -594,8 +594,8 @@ struct ieee80211_sub_if_data {union {struct mac80211_if_ap ap; -struct ieee80211_if_wds wds; -struct ieee80211_if_vlan vlan; +struct mac80211_if_wds wds; +struct mac80211_if_vlan vlan;struct ieee80211_if_managed mgd;struct ieee80211_if_ibss ibss;struct ieee80211_if_mesh mesh;
RFC PATCH 16/27 mac80211: rename ieee80211_work_type to mac80211_work_type
In reply to Kalle Valo--- net/mac80211/cfg.c | 4 ++-- net/mac80211/mac80211_i.h | 18 +++++++++--------- net/mac80211/mlme.c | 30 +++++++++++++++--------------- net/mac80211/status.c | 2 +- net/mac80211/work.c | 34 +++++++++++++++++----------------- 5 files changed, 44 insertions(+), 44 deletions(-)
net/mac80211/cfg.c +2 -2
@@ -1963,7 +1963,7 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct net_device *dev,return -ENOMEM ; } - wk->type =IEEE80211_WORK_OFFCHANNEL_TX ; + wk->type =MAC80211_WORK_OFFCHANNEL_TX ; wk->chan = chan; wk->chan_type = channel_type; wk->sdata = sdata;
@@ -2019,7 +2019,7 @@ static int ieee80211_mgmt_tx_cancel_wait(struct wiphy *wiphy,if (wk->sdata != sdata)continue ; -if (wk->type !=IEEE80211_WORK_OFFCHANNEL_TX ) +if (wk->type !=MAC80211_WORK_OFFCHANNEL_TX )continue ;if (cookie != (unsigned long ) wk->offchan_tx.frame)
net/mac80211/mac80211_i.h +9 -9
@@ -257,14 +257,14 @@ struct mesh_preq_queue {u8 flags; }; -enum ieee80211_work_type { -IEEE80211_WORK_ABORT , -IEEE80211_WORK_DIRECT_PROBE , -IEEE80211_WORK_AUTH , -IEEE80211_WORK_ASSOC_BEACON_WAIT , -IEEE80211_WORK_ASSOC , -IEEE80211_WORK_REMAIN_ON_CHANNEL , -IEEE80211_WORK_OFFCHANNEL_TX , +enum mac80211_work_type { +MAC80211_WORK_ABORT , +MAC80211_WORK_DIRECT_PROBE , +MAC80211_WORK_AUTH , +MAC80211_WORK_ASSOC_BEACON_WAIT , +MAC80211_WORK_ASSOC , +MAC80211_WORK_REMAIN_ON_CHANNEL , +MAC80211_WORK_OFFCHANNEL_TX , };/**
@@ -293,7 +293,7 @@ struct ieee80211_work {enum nl80211_channel_type chan_type;unsigned long timeout; -enum ieee80211_work_type type; +enum mac80211_work_type type;u8 filter_ta[ETH_ALEN ];
net/mac80211/mlme.c +15 -15
@@ -1971,8 +1971,8 @@ void ieee80211_sta_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata,if (wk->sdata != sdata)continue ; -if (wk->type !=IEEE80211_WORK_ASSOC && - wk->type !=IEEE80211_WORK_ASSOC_BEACON_WAIT ) +if (wk->type !=MAC80211_WORK_ASSOC && + wk->type !=MAC80211_WORK_ASSOC_BEACON_WAIT )continue ;if (memcmp (mgmt->bssid, wk->filter_ta,ETH_ALEN ))
@@ -2282,7 +2282,7 @@ ieee80211_probe_auth_done(struct ieee80211_work *wk,return WORK_DONE_DESTROY ; } -if (wk->type ==IEEE80211_WORK_AUTH ) { +if (wk->type ==MAC80211_WORK_AUTH ) {cfg80211_send_rx_auth (wk->sdata->dev, skb->data, skb->len);return WORK_DONE_DESTROY ; }
@@ -2291,7 +2291,7 @@ ieee80211_probe_auth_done(struct ieee80211_work *wk,ieee80211_rx_mgmt_probe_resp (wk->sdata, skb);mutex_unlock (&wk->sdata->u.mgd.mtx); - wk->type =IEEE80211_WORK_AUTH ; + wk->type =MAC80211_WORK_AUTH ; wk->probe_auth.tries =0 ;return WORK_DONE_REQUEUE ; }
@@ -2351,9 +2351,9 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,/* if we already have a probe, don't probe again */ if (req->bss->proberesp_ies) - wk->type =IEEE80211_WORK_AUTH ; + wk->type =MAC80211_WORK_AUTH ;else - wk->type =IEEE80211_WORK_DIRECT_PROBE ; + wk->type =MAC80211_WORK_DIRECT_PROBE ; wk->chan = req->bss->channel; wk->chan_type =NL80211_CHAN_NO_HT ; wk->sdata = sdata;
@@ -2376,7 +2376,7 @@ static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk,return WORK_DONE_DESTROY ; } -if (wk->type ==IEEE80211_WORK_ASSOC_BEACON_WAIT ) { +if (wk->type ==MAC80211_WORK_ASSOC_BEACON_WAIT ) {mutex_lock (&wk->sdata->u.mgd.mtx); rx_status = (void *) skb->cb;ieee802_11_parse_elems (skb->data +24 +12 , skb->len -24 -12 , &elems);
@@ -2384,7 +2384,7 @@ static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk, &elems, true);mutex_unlock (&wk->sdata->u.mgd.mtx); - wk->type =IEEE80211_WORK_ASSOC ; + wk->type =MAC80211_WORK_ASSOC ;/* not really done yet */ return WORK_DONE_REQUEUE ; }
@@ -2510,9 +2510,9 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, wk->done = ieee80211_assoc_done;if (!bss->dtim_period && sdata->local->hw.flags &IEEE80211_HW_NEED_DTIM_PERIOD ) - wk->type =IEEE80211_WORK_ASSOC_BEACON_WAIT ; + wk->type =MAC80211_WORK_ASSOC_BEACON_WAIT ;else - wk->type =IEEE80211_WORK_ASSOC ; + wk->type =MAC80211_WORK_ASSOC ;if (req->use_mfp) { ifmgd->mfp =IEEE80211_MFP_REQUIRED ;
@@ -2561,16 +2561,16 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata,if (wk->sdata != sdata)continue ; -if (wk->type !=IEEE80211_WORK_DIRECT_PROBE && - wk->type !=IEEE80211_WORK_AUTH && - wk->type !=IEEE80211_WORK_ASSOC && - wk->type !=IEEE80211_WORK_ASSOC_BEACON_WAIT ) +if (wk->type !=MAC80211_WORK_DIRECT_PROBE && + wk->type !=MAC80211_WORK_AUTH && + wk->type !=MAC80211_WORK_ASSOC && + wk->type !=MAC80211_WORK_ASSOC_BEACON_WAIT )continue ;if (memcmp (req->bss->bssid, wk->filter_ta,ETH_ALEN ))continue ; - not_auth_yet = wk->type ==IEEE80211_WORK_DIRECT_PROBE ; + not_auth_yet = wk->type ==MAC80211_WORK_DIRECT_PROBE ;list_del_rcu (&wk->list);free_work (wk);break ;
net/mac80211/status.c +1 -1
@@ -332,7 +332,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)rcu_read_lock ();list_for_each_entry_rcu (wk, &local->work_list, list) { -if (wk->type !=IEEE80211_WORK_OFFCHANNEL_TX ) +if (wk->type !=MAC80211_WORK_OFFCHANNEL_TX )continue ;if (wk->offchan_tx.frame != skb)continue ;
net/mac80211/work.c +17 -17
@@ -612,7 +612,7 @@ ieee80211_rx_mgmt_auth(struct ieee80211_work *wk, {u16 auth_alg, auth_transaction, status_code; -if (wk->type !=IEEE80211_WORK_AUTH ) +if (wk->type !=MAC80211_WORK_AUTH )return WORK_ACT_MISMATCH ;if (len <24 +6 )
@@ -664,7 +664,7 @@ ieee80211_rx_mgmt_assoc_resp(struct ieee80211_work *wk,struct ieee802_11_elems elems;u8 *pos; -if (wk->type !=IEEE80211_WORK_ASSOC ) +if (wk->type !=MAC80211_WORK_ASSOC )return WORK_ACT_MISMATCH ;/*
@@ -722,7 +722,7 @@ ieee80211_rx_mgmt_probe_resp(struct ieee80211_work *wk,ASSERT_WORK_MTX (local); -if (wk->type !=IEEE80211_WORK_DIRECT_PROBE ) +if (wk->type !=MAC80211_WORK_DIRECT_PROBE )return WORK_ACT_MISMATCH ;if (len <24 +12 )
@@ -745,7 +745,7 @@ ieee80211_rx_mgmt_beacon(struct ieee80211_work *wk,ASSERT_WORK_MTX (local); -if (wk->type !=IEEE80211_WORK_ASSOC_BEACON_WAIT ) +if (wk->type !=MAC80211_WORK_ASSOC_BEACON_WAIT )return WORK_ACT_MISMATCH ;if (len <24 +12 )
@@ -774,10 +774,10 @@ static void ieee80211_work_rx_queued_mgmt(struct mac80211_local *local,const u8 *bssid =NULL ;switch (wk->type) { -case IEEE80211_WORK_DIRECT_PROBE : -case IEEE80211_WORK_AUTH : -case IEEE80211_WORK_ASSOC : -case IEEE80211_WORK_ASSOC_BEACON_WAIT : +case MAC80211_WORK_DIRECT_PROBE : +case MAC80211_WORK_AUTH : +case MAC80211_WORK_ASSOC : +case MAC80211_WORK_ASSOC_BEACON_WAIT : bssid = wk->filter_ta;break ;default :
@@ -1023,25 +1023,25 @@ static void ieee80211_work_work(struct work_struct *work)/* nothing */ rma =WORK_ACT_NONE ;break ; -case IEEE80211_WORK_ABORT : +case MAC80211_WORK_ABORT : rma =WORK_ACT_TIMEOUT ;break ; -case IEEE80211_WORK_DIRECT_PROBE : +case MAC80211_WORK_DIRECT_PROBE : rma =ieee80211_direct_probe (wk);break ; -case IEEE80211_WORK_AUTH : +case MAC80211_WORK_AUTH : rma =ieee80211_authenticate (wk);break ; -case IEEE80211_WORK_ASSOC : +case MAC80211_WORK_ASSOC : rma =ieee80211_associate (wk);break ; -case IEEE80211_WORK_REMAIN_ON_CHANNEL : +case MAC80211_WORK_REMAIN_ON_CHANNEL : rma =ieee80211_remain_on_channel_timeout (wk);break ; -case IEEE80211_WORK_OFFCHANNEL_TX : +case MAC80211_WORK_OFFCHANNEL_TX : rma =ieee80211_offchannel_tx (wk);break ; -case IEEE80211_WORK_ASSOC_BEACON_WAIT : +case MAC80211_WORK_ASSOC_BEACON_WAIT : rma =ieee80211_assoc_beacon_wait (wk);break ; }
@@ -1163,7 +1163,7 @@ void ieee80211_work_purge(struct ieee80211_sub_if_data *sdata)if (wk->sdata != sdata)continue ; cleanup = true; - wk->type =IEEE80211_WORK_ABORT ; + wk->type =MAC80211_WORK_ABORT ; wk->started = true; wk->timeout = jiffies; }
@@ -1244,7 +1244,7 @@ int ieee80211_wk_remain_on_channel(struct ieee80211_sub_if_data *sdata,if (!wk)return -ENOMEM ; - wk->type =IEEE80211_WORK_REMAIN_ON_CHANNEL ; + wk->type =MAC80211_WORK_REMAIN_ON_CHANNEL ; wk->chan = chan; wk->chan_type = channel_type; wk->sdata = sdata;
RFC PATCH 17/27 mac80211: rename ieee80211_work to mac80211_work
In reply to Kalle Valo--- net/mac80211/cfg.c | 6 +++--- net/mac80211/iface.c | 2 +- net/mac80211/mac80211_i.h | 8 ++++---- net/mac80211/mlme.c | 14 +++++++------ net/mac80211/status.c | 2 +- net/mac80211/work.c | 48 +++++++++++++++++++++++---------------------- 6 files changed, 40 insertions(+), 40 deletions(-)
net/mac80211/cfg.c +3 -3
@@ -1785,7 +1785,7 @@ static int ieee80211_cancel_remain_on_channel(struct wiphy *wiphy, }static enum work_done_result -ieee80211_offchan_tx_done (struct ieee80211_work *wk,struct sk_buff *skb) +ieee80211_offchan_tx_done (struct mac80211_work *wk,struct sk_buff *skb) {/* * Use the data embedded in the work struct for reporting
@@ -1816,7 +1816,7 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct net_device *dev,struct mac80211_local *local = sdata->local;struct sk_buff *skb;struct sta_info *sta; -struct ieee80211_work *wk; +struct mac80211_work *wk;const struct ieee80211_mgmt *mgmt = (void *)buf;u32 flags =IEEE80211_TX_INTFL_NL80211_FRAME_TX |IEEE80211_TX_CTL_REQ_TX_STATUS ;
@@ -1983,7 +1983,7 @@ static int ieee80211_mgmt_tx_cancel_wait(struct wiphy *wiphy, {struct ieee80211_sub_if_data *sdata =IEEE80211_DEV_TO_SUB_IF (dev);struct mac80211_local *local = sdata->local; -struct ieee80211_work *wk; +struct mac80211_work *wk;int ret = -ENOENT ;mutex_lock (&local->mtx);
net/mac80211/iface.c +1 -1
@@ -1274,7 +1274,7 @@ u32 __ieee80211_recalc_idle(struct mac80211_local *local)struct ieee80211_sub_if_data *sdata;int count =0 ;bool working = false, scanning = false, hw_roc = false; -struct ieee80211_work *wk; +struct mac80211_work *wk;unsigned int led_trig_start =0 , led_trig_stop =0 ;#ifdef CONFIG_PROVE_LOCKING
net/mac80211/mac80211_i.h +4 -4
@@ -279,14 +279,14 @@ enum work_done_result { WORK_DONE_REQUEUE, }; -struct ieee80211_work { +struct mac80211_work {struct list_head list;struct rcu_head rcu_head;struct ieee80211_sub_if_data *sdata; -enum work_done_result (*done)(struct ieee80211_work *wk, +enum work_done_result (*done)(struct mac80211_work *wk,struct sk_buff *skb);struct ieee80211_channel *chan;
@@ -1374,8 +1374,8 @@ size_t ieee80211_ie_split_vendor(const u8 *ies, size_t ielen, size_t offset);/* internal work items */ void ieee80211_work_init (struct mac80211_local *local); -void ieee80211_add_work (struct ieee80211_work *wk); -void free_work (struct ieee80211_work *wk); +void ieee80211_add_work (struct mac80211_work *wk); +void free_work (struct mac80211_work *wk);void ieee80211_work_purge (struct ieee80211_sub_if_data *sdata);ieee80211_rx_result ieee80211_work_rx_mgmt (struct ieee80211_sub_if_data *sdata,struct sk_buff *skb);
net/mac80211/mlme.c +7 -7
@@ -1431,7 +1431,7 @@ ieee80211_rx_mgmt_disassoc(struct ieee80211_sub_if_data *sdata, } -static bool ieee80211_assoc_success (struct ieee80211_work *wk, +static bool ieee80211_assoc_success (struct mac80211_work *wk,struct ieee80211_mgmt *mgmt,size_t len) {struct ieee80211_sub_if_data *sdata = wk->sdata;
@@ -1964,7 +1964,7 @@ void ieee80211_sta_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata,if (skb->len >=24 +2 /* mgmt + deauth reason */ && (fc &IEEE80211_FCTL_STYPE ) ==IEEE80211_STYPE_DEAUTH ) {struct mac80211_local *local = sdata->local; -struct ieee80211_work *wk; +struct mac80211_work *wk;mutex_lock (&local->mtx);list_for_each_entry (wk, &local->work_list, list) {
@@ -2274,7 +2274,7 @@ int ieee80211_max_network_latency(struct notifier_block *nb,/* config hooks */ static enum work_done_result -ieee80211_probe_auth_done (struct ieee80211_work *wk, +ieee80211_probe_auth_done (struct mac80211_work *wk,struct sk_buff *skb) {if (!skb) {
@@ -2300,7 +2300,7 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata, struct cfg80211_auth_request *req) {const u8 *ssid; -struct ieee80211_work *wk; +struct mac80211_work *wk;u16 auth_alg;if (req->local_state_change)
@@ -2363,7 +2363,7 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,return 0 ; } -static enum work_done_result ieee80211_assoc_done (struct ieee80211_work *wk, +static enum work_done_result ieee80211_assoc_done (struct mac80211_work *wk,struct sk_buff *skb) {struct ieee80211_mgmt *mgmt;
@@ -2414,7 +2414,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, {struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;struct mac80211_bss *bss = (void *)req->bss->priv; -struct ieee80211_work *wk; +struct mac80211_work *wk;const u8 *ssid;int i;
@@ -2540,7 +2540,7 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata, {struct mac80211_local *local = sdata->local;struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; -struct ieee80211_work *wk; +struct mac80211_work *wk;u8 bssid[ETH_ALEN ];bool assoc_bss = false;
net/mac80211/status.c +1 -1
@@ -327,7 +327,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb) }if (info->flags &IEEE80211_TX_INTFL_NL80211_FRAME_TX ) { -struct ieee80211_work *wk; +struct mac80211_work *wk;u64 cookie = (unsigned long )skb;rcu_read_lock ();
net/mac80211/work.c +24 -24
184 lines not on this page · raw message
RFC PATCH 18/27 mac80211: rename ieee80211_sta_flags to mac80211_sta_flags
In reply to Kalle Valo--- net/mac80211/mac80211_i.h | 20 +++++----- net/mac80211/mlme.c | 94 +++++++++++++++++++++++---------------------- net/mac80211/status.c | 2 - net/mac80211/tx.c | 4 +- 4 files changed, 60 insertions(+), 60 deletions(-)
net/mac80211/mac80211_i.h +10 -10
@@ -337,16 +337,16 @@ struct mac80211_work { };/* flags used in struct ieee80211_if_managed.flags */ -enum ieee80211_sta_flags { -IEEE80211_STA_BEACON_POLL =BIT (0 ), -IEEE80211_STA_CONNECTION_POLL =BIT (1 ), -IEEE80211_STA_CONTROL_PORT =BIT (2 ), -IEEE80211_STA_DISABLE_11N =BIT (4 ), -IEEE80211_STA_CSA_RECEIVED =BIT (5 ), -IEEE80211_STA_MFP_ENABLED =BIT (6 ), -IEEE80211_STA_UAPSD_ENABLED =BIT (7 ), -IEEE80211_STA_NULLFUNC_ACKED =BIT (8 ), -IEEE80211_STA_RESET_SIGNAL_AVE =BIT (9 ), +enum mac80211_sta_flags { +MAC80211_STA_BEACON_POLL =BIT (0 ), +MAC80211_STA_CONNECTION_POLL =BIT (1 ), +MAC80211_STA_CONTROL_PORT =BIT (2 ), +MAC80211_STA_DISABLE_11N =BIT (4 ), +MAC80211_STA_CSA_RECEIVED =BIT (5 ), +MAC80211_STA_MFP_ENABLED =BIT (6 ), +MAC80211_STA_UAPSD_ENABLED =BIT (7 ), +MAC80211_STA_NULLFUNC_ACKED =BIT (8 ), +MAC80211_STA_RESET_SIGNAL_AVE =BIT (9 ), };struct ieee80211_if_managed {
net/mac80211/mlme.c +47 -47
278 lines not on this page · raw message
net/mac80211/status.c +1 -1
@@ -320,7 +320,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb) local->ps_sdata && !(local->scanning)) {if (info->flags &IEEE80211_TX_STAT_ACK ) { local->ps_sdata->u.mgd.flags |= -IEEE80211_STA_NULLFUNC_ACKED ; +MAC80211_STA_NULLFUNC_ACKED ; }else mod_timer (&local->dynamic_ps_timer, jiffies +msecs_to_jiffies (10 ));
net/mac80211/tx.c +2 -2
@@ -224,7 +224,7 @@ ieee80211_tx_h_dynamic_ps(struct mac80211_tx_data *tx)* changed via debugfs, user needs to reassociate manually to have * everything in sync. */ -if ((ifmgd->flags &IEEE80211_STA_UAPSD_ENABLED ) +if ((ifmgd->flags &MAC80211_STA_UAPSD_ENABLED ) && (local->uapsd_queues &IEEE80211_WMM_IE_STA_QOSINFO_AC_VO ) &&skb_get_queue_mapping (tx->skb) ==0 )return TX_CONTINUE ;
@@ -232,7 +232,7 @@ ieee80211_tx_h_dynamic_ps(struct mac80211_tx_data *tx)if (local->hw.conf.flags &IEEE80211_CONF_PS ) {ieee80211_stop_queues_by_reason (&local->hw,IEEE80211_QUEUE_STOP_REASON_PS ); - ifmgd->flags &= ~IEEE80211_STA_NULLFUNC_ACKED ; + ifmgd->flags &= ~MAC80211_STA_NULLFUNC_ACKED ;ieee80211_queue_work (&local->hw, &local->dynamic_ps_disable_work); }
RFC PATCH 19/27 mac80211: rename ieee80211_if_managed to mac80211_if_managed
In reply to Kalle Valo--- net/mac80211/mac80211_i.h | 6 ++-- net/mac80211/main.c | 2 + net/mac80211/mlme.c | 66 +++++++++++++++++++++++---------------------- net/mac80211/offchannel.c | 2 + net/mac80211/tx.c | 6 ++-- net/mac80211/util.c | 2 + 6 files changed, 42 insertions(+), 42 deletions(-)
net/mac80211/mac80211_i.h +3 -3
@@ -336,7 +336,7 @@ struct mac80211_work {u8 ie[0 ]; }; -/* flags used in struct ieee80211_if_managed.flags */ +/* flags used in struct mac80211_if_managed.flags */ enum mac80211_sta_flags {MAC80211_STA_BEACON_POLL =BIT (0 ),MAC80211_STA_CONNECTION_POLL =BIT (1 ),
@@ -349,7 +349,7 @@ enum mac80211_sta_flags { MAC80211_STA_RESET_SIGNAL_AVE = BIT(9), }; -struct ieee80211_if_managed { +struct mac80211_if_managed {struct timer_list timer;struct timer_list conn_mon_timer;struct timer_list bcn_mon_timer;
@@ -596,7 +596,7 @@ struct ieee80211_sub_if_data {struct mac80211_if_ap ap;struct mac80211_if_wds wds;struct mac80211_if_vlan vlan; -struct ieee80211_if_managed mgd; +struct mac80211_if_managed mgd;struct ieee80211_if_ibss ibss;struct ieee80211_if_mesh mesh;u32 mntr_flags;
net/mac80211/main.c +1 -1
@@ -409,7 +409,7 @@ static int ieee80211_ifa_changed(struct notifier_block *nb,struct in_device *idev;struct ieee80211_sub_if_data *sdata;struct ieee80211_bss_conf *bss_conf; -struct ieee80211_if_managed *ifmgd; +struct mac80211_if_managed *ifmgd;int c =0 ;/* Make sure it's our interface that got changed */
net/mac80211/mlme.c +33 -33
264 lines not on this page · raw message
net/mac80211/offchannel.c +1 -1
@@ -27,7 +27,7 @@ static void ieee80211_offchannel_ps_enable(struct ieee80211_sub_if_data *sdata, bool tell_ap) {struct mac80211_local *local = sdata->local; -struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; +struct mac80211_if_managed *ifmgd = &sdata->u.mgd; local->offchannel_ps_enabled = false;
net/mac80211/tx.c +3 -3
@@ -180,7 +180,7 @@ static ieee80211_tx_result debug_noinline ieee80211_tx_h_dynamic_ps(struct mac80211_tx_data *tx) {struct mac80211_local *local = tx->local; -struct ieee80211_if_managed *ifmgd; +struct mac80211_if_managed *ifmgd;/* driver doesn't support power save */ if (!(local->hw.flags &IEEE80211_HW_SUPPORTS_PS ))
@@ -2318,7 +2318,7 @@ struct sk_buff *ieee80211_pspoll_get(struct ieee80211_hw *hw, struct ieee80211_vif *vif) {struct ieee80211_sub_if_data *sdata; -struct ieee80211_if_managed *ifmgd; +struct mac80211_if_managed *ifmgd;struct ieee80211_pspoll *pspoll;struct mac80211_local *local;struct sk_buff *skb;
@@ -2359,7 +2359,7 @@ struct sk_buff *ieee80211_nullfunc_get(struct ieee80211_hw *hw, {struct ieee80211_hdr_3addr *nullfunc;struct ieee80211_sub_if_data *sdata; -struct ieee80211_if_managed *ifmgd; +struct mac80211_if_managed *ifmgd;struct mac80211_local *local;struct sk_buff *skb;
net/mac80211/util.c +1 -1
@@ -1321,7 +1321,7 @@ int ieee80211_reconfig(struct mac80211_local *local)return 0 ; } -static int check_mgd_smps (struct ieee80211_if_managed *ifmgd, +static int check_mgd_smps (struct mac80211_if_managed *ifmgd,enum ieee80211_smps_mode *smps_mode) {if (ifmgd->associated) {
RFC PATCH 20/27 mac80211: rename ieee80211_if_ibss to mac80211_if_ibss
In reply to Kalle Valo--- net/mac80211/ibss.c | 24 ++++++++++++------------ net/mac80211/mac80211_i.h | 4 ++-- net/mac80211/tx.c | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-)
net/mac80211/ibss.c +12 -12
@@ -67,7 +67,7 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,const u32 basic_rates, const u16 capability, u64 tsf) { - struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; + struct mac80211_if_ibss *ifibss = &sdata->u.ibss;struct mac80211_local *local = sdata->local;int rates, i;struct sk_buff *skb;
@@ -420,7 +420,7 @@ struct sta_info *ieee80211_ibss_add_sta(struct ieee80211_sub_if_data *sdata, u8 *bssid,u8 *addr, u32 supp_rates, gfp_t gfp) { -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;struct mac80211_local *local = sdata->local;struct sta_info *sta;int band = local->hw.conf.channel->band;
@@ -496,7 +496,7 @@ static int ieee80211_sta_active_ibss(struct ieee80211_sub_if_data *sdata)static void ieee80211_sta_merge_ibss (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;lockdep_assert_held (&ifibss->mtx);
@@ -525,7 +525,7 @@ static void ieee80211_sta_merge_ibss(struct ieee80211_sub_if_data *sdata)static void ieee80211_sta_create_ibss (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;u8 bssid[ETH_ALEN ];u16 capability;int i;
@@ -566,7 +566,7 @@ static void ieee80211_sta_create_ibss(struct ieee80211_sub_if_data *sdata)static void ieee80211_sta_find_ibss (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;struct mac80211_local *local = sdata->local;struct cfg80211_bss *cbss;struct ieee80211_channel *chan =NULL ;
@@ -657,7 +657,7 @@ static void ieee80211_rx_mgmt_probe_req(struct ieee80211_sub_if_data *sdata, struct sk_buff *req) {struct ieee80211_mgmt *mgmt = (void *)req->data; -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;struct mac80211_local *local = sdata->local;int tx_last_beacon, len = req->len;struct sk_buff *skb;
@@ -801,7 +801,7 @@ void ieee80211_ibss_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata,void ieee80211_ibss_work (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;mutex_lock (&ifibss->mtx);
@@ -833,7 +833,7 @@ static void ieee80211_ibss_timer(unsigned long data) {struct ieee80211_sub_if_data *sdata = (struct ieee80211_sub_if_data *) data; -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;struct mac80211_local *local = sdata->local;if (local->quiescing) {
@@ -847,7 +847,7 @@ static void ieee80211_ibss_timer(unsigned long data)#ifdef CONFIG_PM void ieee80211_ibss_quiesce (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;if (del_timer_sync (&ifibss->timer)) ifibss->timer_running = true;
@@ -855,7 +855,7 @@ void ieee80211_ibss_quiesce(struct ieee80211_sub_if_data *sdata)void ieee80211_ibss_restart (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;if (ifibss->timer_running) {add_timer (&ifibss->timer);
@@ -866,7 +866,7 @@ void ieee80211_ibss_restart(struct ieee80211_sub_if_data *sdata)void ieee80211_ibss_setup_sdata (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;setup_timer (&ifibss->timer, ieee80211_ibss_timer, (unsigned long ) sdata);
@@ -957,7 +957,7 @@ int ieee80211_ibss_join(struct ieee80211_sub_if_data *sdata,int ieee80211_ibss_leave (struct ieee80211_sub_if_data *sdata) {struct sk_buff *skb; -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;struct mac80211_local *local = sdata->local;struct cfg80211_bss *cbss;u16 capability;
net/mac80211/mac80211_i.h +2 -2
@@ -419,7 +419,7 @@ struct mac80211_if_managed {int last_cqm_event_signal; }; -struct ieee80211_if_ibss { +struct mac80211_if_ibss {struct timer_list timer;struct mutex mtx;
@@ -597,7 +597,7 @@ struct ieee80211_sub_if_data {struct mac80211_if_wds wds;struct mac80211_if_vlan vlan;struct mac80211_if_managed mgd; -struct ieee80211_if_ibss ibss; +struct mac80211_if_ibss ibss;struct ieee80211_if_mesh mesh;u32 mntr_flags; } u;
net/mac80211/tx.c +1 -1
@@ -2231,7 +2231,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, }else goto out; }else if (sdata->vif.type ==NL80211_IFTYPE_ADHOC ) { -struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; +struct mac80211_if_ibss *ifibss = &sdata->u.ibss;struct ieee80211_hdr *hdr;struct sk_buff *presp =rcu_dereference (ifibss->presp);
RFC PATCH 21/27 mac80211: rename ieee80211_if_mesh to mac80211_if_mesh
In reply to Kalle Valo--- net/mac80211/cfg.c | 6 +++--- net/mac80211/mac80211_i.h | 4 ++-- net/mac80211/mesh.c | 26 +++++++++++++------------- net/mac80211/mesh.h | 4 ++-- net/mac80211/mesh_hwmp.c | 12 ++++++------ net/mac80211/mesh_pathtbl.c | 4 ++-- 6 files changed, 28 insertions(+), 28 deletions(-)
net/mac80211/cfg.c +3 -3
@@ -1047,7 +1047,7 @@ static inline bool _chg_mesh_attr(enum nl80211_meshconf_params parm, u32 mask)return (mask >> (parm-1 )) &0x1 ; } -static int copy_mesh_setup (struct ieee80211_if_mesh *ifmsh, +static int copy_mesh_setup (struct mac80211_if_mesh *ifmsh,const struct mesh_setup *setup) {u8 *new_ie;
@@ -1087,7 +1087,7 @@ static int ieee80211_update_mesh_config(struct wiphy *wiphy, {struct mesh_config *conf;struct ieee80211_sub_if_data *sdata; -struct ieee80211_if_mesh *ifmsh; +struct mac80211_if_mesh *ifmsh; sdata =IEEE80211_DEV_TO_SUB_IF (dev); ifmsh = &sdata->u.mesh;
@@ -1139,7 +1139,7 @@ static int ieee80211_join_mesh(struct wiphy *wiphy, struct net_device *dev, const struct mesh_setup *setup) {struct ieee80211_sub_if_data *sdata =IEEE80211_DEV_TO_SUB_IF (dev); -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;int err;memcpy (&ifmsh->mshcfg, conf,sizeof (struct mesh_config ));
net/mac80211/mac80211_i.h +2 -2
@@ -451,7 +451,7 @@ struct mac80211_if_ibss { } state; }; -struct ieee80211_if_mesh { +struct mac80211_if_mesh {struct timer_list housekeeping_timer;struct timer_list mesh_path_timer;struct timer_list mesh_path_root_timer;
@@ -598,7 +598,7 @@ struct ieee80211_sub_if_data {struct mac80211_if_vlan vlan;struct mac80211_if_managed mgd;struct mac80211_if_ibss ibss; -struct ieee80211_if_mesh mesh; +struct mac80211_if_mesh mesh;u32 mntr_flags; } u;
net/mac80211/mesh.c +13 -13
@@ -45,7 +45,7 @@ static void ieee80211_mesh_housekeeping_timer(unsigned long data) {struct ieee80211_sub_if_data *sdata = (void *) data;struct mac80211_local *local = sdata->local; -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;set_bit (MESH_WORK_HOUSEKEEPING , &ifmsh->wrkq_flags);
@@ -68,7 +68,7 @@ static void ieee80211_mesh_housekeeping_timer(unsigned long data)*/ bool mesh_matches_local (struct ieee802_11_elems *ie,struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;/* * As support for each feature is added, check for matching
@@ -292,7 +292,7 @@ static void ieee80211_mesh_path_timer(unsigned long data) {struct ieee80211_sub_if_data *sdata = (struct ieee80211_sub_if_data *) data; -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mac80211_local *local = sdata->local;if (local->quiescing) {
@@ -307,7 +307,7 @@ static void ieee80211_mesh_path_root_timer(unsigned long data) {struct ieee80211_sub_if_data *sdata = (struct ieee80211_sub_if_data *) data; -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mac80211_local *local = sdata->local;set_bit (MESH_WORK_ROOT , &ifmsh->wrkq_flags);
@@ -320,7 +320,7 @@ static void ieee80211_mesh_path_root_timer(unsigned long data)ieee80211_queue_work (&local->hw, &sdata->work); } -void ieee80211_mesh_root_setup (struct ieee80211_if_mesh *ifmsh) +void ieee80211_mesh_root_setup (struct mac80211_if_mesh *ifmsh) {if (ifmsh->mshcfg.dot11MeshHWMPRootMode)set_bit (MESH_WORK_ROOT , &ifmsh->wrkq_flags);
@@ -399,7 +399,7 @@ int ieee80211_new_mesh_header(struct ieee80211s_hdr *meshhdr, }static void ieee80211_mesh_housekeeping (struct ieee80211_sub_if_data *sdata, -struct ieee80211_if_mesh *ifmsh) +struct mac80211_if_mesh *ifmsh) {bool free_plinks;
@@ -421,7 +421,7 @@ static void ieee80211_mesh_housekeeping(struct ieee80211_sub_if_data *sdata,static void ieee80211_mesh_rootpath (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;mesh_path_tx_root_frame (sdata); mod_timer(&ifmsh->mesh_path_root_timer,
@@ -431,7 +431,7 @@ static void ieee80211_mesh_rootpath(struct ieee80211_sub_if_data *sdata)#ifdef CONFIG_PM void ieee80211_mesh_quiesce (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;/* use atomic bitops in case both timers fire at the same time */
@@ -445,7 +445,7 @@ void ieee80211_mesh_quiesce(struct ieee80211_sub_if_data *sdata)void ieee80211_mesh_restart (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;if (test_and_clear_bit (TMR_RUNNING_HK , &ifmsh->timers_running))add_timer (&ifmsh->housekeeping_timer);
@@ -459,7 +459,7 @@ void ieee80211_mesh_restart(struct ieee80211_sub_if_data *sdata)void ieee80211_start_mesh (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mac80211_local *local = sdata->local; local->fif_other_bss++;
@@ -482,7 +482,7 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata)void ieee80211_stop_mesh (struct ieee80211_sub_if_data *sdata) {struct mac80211_local *local = sdata->local; -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh; ifmsh->mesh_id_len =0 ;ieee80211_bss_info_change_notify (sdata,BSS_CHANGED_BEACON_ENABLED );
@@ -591,7 +591,7 @@ void ieee80211_mesh_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata, void ieee80211_mesh_work(struct ieee80211_sub_if_data *sdata) { - struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; + struct mac80211_if_mesh *ifmsh = &sdata->u.mesh; if (ifmsh->preq_queue_len && time_after(jiffies,
@@ -624,7 +624,7 @@ void ieee80211_mesh_notify_scan_completed(struct mac80211_local *local)void ieee80211_mesh_init_sdata (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh; setup_timer(&ifmsh->housekeeping_timer, ieee80211_mesh_housekeeping_timer,
net/mac80211/mesh.h +2 -2
@@ -196,7 +196,7 @@ int mesh_rmc_check(u8 *addr, struct ieee80211s_hdr *mesh_hdr, struct ieee80211_sub_if_data *sdata);bool mesh_matches_local (struct ieee802_11_elems *ie,struct ieee80211_sub_if_data *sdata); -void mesh_ids_set_default (struct ieee80211_if_mesh *mesh); +void mesh_ids_set_default (struct mac80211_if_mesh *mesh);void mesh_mgmt_ies_add (struct sk_buff *skb,struct ieee80211_sub_if_data *sdata);void mesh_rmc_free (struct ieee80211_sub_if_data *sdata);
@@ -208,7 +208,7 @@ void ieee80211s_stop(void);void ieee80211_mesh_init_sdata (struct ieee80211_sub_if_data *sdata);void ieee80211_start_mesh (struct ieee80211_sub_if_data *sdata);void ieee80211_stop_mesh (struct ieee80211_sub_if_data *sdata); -void ieee80211_mesh_root_setup (struct ieee80211_if_mesh *ifmsh); +void ieee80211_mesh_root_setup (struct mac80211_if_mesh *ifmsh);/* Mesh paths */ int mesh_nexthop_lookup(struct sk_buff *skb,
net/mac80211/mesh_hwmp.c +6 -6
@@ -469,7 +469,7 @@ static void hwmp_preq_frame_process(struct ieee80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt, u8 *preq_elem, u32 metric) { - struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; + struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mesh_path *mpath;u8 *target_addr, *orig_addr;u8 target_flags, ttl;
@@ -636,7 +636,7 @@ fail:static void hwmp_perr_frame_process (struct ieee80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt,u8 *perr_elem) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mesh_path *mpath;u8 ttl;u8 *ta, *target_addr;
@@ -679,7 +679,7 @@ static void hwmp_rann_frame_process(struct ieee80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt, struct ieee80211_rann_ie *rann) { - struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; + struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mesh_path *mpath;u8 ttl, flags, hopcount;u8 *orig_addr;
@@ -783,7 +783,7 @@ void mesh_rx_path_sel_frame(struct ieee80211_sub_if_data *sdata,static void mesh_queue_preq (struct mesh_path *mpath,u8 flags) {struct ieee80211_sub_if_data *sdata = mpath->sdata; -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mesh_preq_queue *preq_node; preq_node =kmalloc (sizeof (struct mesh_preq_queue ),GFP_ATOMIC );
@@ -829,7 +829,7 @@ static void mesh_queue_preq(struct mesh_path *mpath, u8 flags)*/ void mesh_path_start_discovery (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mesh_preq_queue *preq_node;struct mesh_path *mpath;u8 ttl, target_flags;
@@ -1006,7 +1006,7 @@ void mesh_path_timer(unsigned long data)void mesh_path_tx_root_frame (struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh; mesh_path_sel_frame_tx(MPATH_RANN, 0, sdata->vif.addr, cpu_to_le32(++ifmsh->sn),
net/mac80211/mesh_pathtbl.c +2 -2
@@ -315,7 +315,7 @@ struct mesh_path *mesh_path_lookup_by_idx(int idx, struct ieee80211_sub_if_data*/ int mesh_path_add (u8 *dst,struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mac80211_local *local = sdata->local;struct mesh_table *tbl;struct mesh_path *mpath, *new_mpath;
@@ -447,7 +447,7 @@ void mesh_mpp_table_grow(void)int mpp_path_add (u8 *dst,u8 *mpp,struct ieee80211_sub_if_data *sdata) { -struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; +struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mac80211_local *local = sdata->local;struct mesh_table *tbl;struct mesh_path *mpath, *new_mpath;
RFC PATCH 22/27 mac80211: rename ieee80211_sub_if_data_flags to mac80211_sub_if_data_flags
In reply to Kalle ValoAlso convert enum sdata_queue_type at the same time.
--- net/mac80211/agg-tx.c | 4 ++-- net/mac80211/cfg.c | 4 ++-- net/mac80211/iface.c | 20 ++++++++++---------- net/mac80211/mac80211_i.h | 26 +++++++++++++------------- net/mac80211/mlme.c | 4 ++-- net/mac80211/rx.c | 8 ++++---- net/mac80211/tx.c | 2 +- net/mac80211/util.c | 12 ++++++------ 8 files changed, 40 insertions(+), 40 deletions(-)
net/mac80211/agg-tx.c +2 -2
@@ -594,7 +594,7 @@ void ieee80211_start_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,memcpy (&ra_tid->ra, ra,ETH_ALEN ); ra_tid->tid = tid; - skb->pkt_type =IEEE80211_SDATA_QUEUE_AGG_START ; + skb->pkt_type =MAC80211_SDATA_QUEUE_AGG_START ;skb_queue_tail (&sdata->skb_queue, skb);ieee80211_queue_work (&local->hw, &sdata->work); }
@@ -747,7 +747,7 @@ void ieee80211_stop_tx_ba_cb_irqsafe(struct ieee80211_vif *vif,memcpy (&ra_tid->ra, ra,ETH_ALEN ); ra_tid->tid = tid; - skb->pkt_type =IEEE80211_SDATA_QUEUE_AGG_STOP ; + skb->pkt_type =MAC80211_SDATA_QUEUE_AGG_STOP ;skb_queue_tail (&sdata->skb_queue, skb);ieee80211_queue_work (&local->hw, &sdata->work); }
net/mac80211/cfg.c +2 -2
@@ -1212,9 +1212,9 @@ static int ieee80211_change_bss(struct wiphy *wiphy,if (params->ap_isolate >=0 ) {if (params->ap_isolate) - sdata->flags |=IEEE80211_SDATA_DONT_BRIDGE_PACKETS ; + sdata->flags |=MAC80211_SDATA_DONT_BRIDGE_PACKETS ;else - sdata->flags &= ~IEEE80211_SDATA_DONT_BRIDGE_PACKETS ; + sdata->flags &= ~MAC80211_SDATA_DONT_BRIDGE_PACKETS ; }if (params->ht_opmode >=0 ) {
net/mac80211/iface.c +10 -10
@@ -316,10 +316,10 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up)* which will check whether any increments here were done in * error and sync them down to the hardware as filter flags. */ -if (sdata->flags &IEEE80211_SDATA_ALLMULTI ) +if (sdata->flags &MAC80211_SDATA_ALLMULTI )atomic_inc (&local->iff_allmultis); -if (sdata->flags &IEEE80211_SDATA_PROMISC ) +if (sdata->flags &MAC80211_SDATA_PROMISC )atomic_inc (&local->iff_promiscs);mutex_lock (&local->mtx);
@@ -421,10 +421,10 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,* on the master interface which will sync these down to the * hardware as filter flags. */ -if (sdata->flags &IEEE80211_SDATA_ALLMULTI ) +if (sdata->flags &MAC80211_SDATA_ALLMULTI )atomic_dec (&local->iff_allmultis); -if (sdata->flags &IEEE80211_SDATA_PROMISC ) +if (sdata->flags &MAC80211_SDATA_PROMISC )atomic_dec (&local->iff_promiscs);if (sdata->vif.type ==NL80211_IFTYPE_AP ) {
@@ -584,15 +584,15 @@ static void ieee80211_set_multicast_list(struct net_device *dev) allmulti = !!(dev->flags &IFF_ALLMULTI ); promisc = !!(dev->flags &IFF_PROMISC ); - sdata_allmulti = !!(sdata->flags &IEEE80211_SDATA_ALLMULTI ); - sdata_promisc = !!(sdata->flags &IEEE80211_SDATA_PROMISC ); + sdata_allmulti = !!(sdata->flags &MAC80211_SDATA_ALLMULTI ); + sdata_promisc = !!(sdata->flags &MAC80211_SDATA_PROMISC );if (allmulti != sdata_allmulti) {if (dev->flags &IFF_ALLMULTI )atomic_inc (&local->iff_allmultis);else atomic_dec (&local->iff_allmultis); - sdata->flags ^=IEEE80211_SDATA_ALLMULTI ; + sdata->flags ^=MAC80211_SDATA_ALLMULTI ; }if (promisc != sdata_promisc) {
@@ -600,7 +600,7 @@ static void ieee80211_set_multicast_list(struct net_device *dev)atomic_inc (&local->iff_promiscs); else atomic_dec(&local->iff_promiscs); - sdata->flags ^=IEEE80211_SDATA_PROMISC ; + sdata->flags ^=MAC80211_SDATA_PROMISC ; }spin_lock_bh (&local->filter_lock);__hw_addr_sync (&local->mc_list, &dev->mc, dev->addr_len);
@@ -730,11 +730,11 @@ static void ieee80211_iface_work(struct work_struct *work)while ((skb =skb_dequeue (&sdata->skb_queue))) {struct ieee80211_mgmt *mgmt = (void *)skb->data; -if (skb->pkt_type ==IEEE80211_SDATA_QUEUE_AGG_START ) { +if (skb->pkt_type ==MAC80211_SDATA_QUEUE_AGG_START ) { ra_tid = (void *)&skb->cb;ieee80211_start_tx_ba_cb (&sdata->vif, ra_tid->ra, ra_tid->tid); - }else if (skb->pkt_type ==IEEE80211_SDATA_QUEUE_AGG_STOP ) { + }else if (skb->pkt_type ==MAC80211_SDATA_QUEUE_AGG_STOP ) { ra_tid = (void *)&skb->cb;ieee80211_stop_tx_ba_cb (&sdata->vif, ra_tid->ra, ra_tid->tid);
net/mac80211/mac80211_i.h +13 -13
@@ -507,20 +507,20 @@ struct mac80211_if_mesh {#endif /** -* enum ieee80211_sub_if_data_flags - virtual interface flags +* enum mac80211_sub_if_data_flags - virtual interface flags * -* @IEEE80211_SDATA_ALLMULTI: interface wants all multicast packets -* @IEEE80211_SDATA_PROMISC: interface is promisc -* @IEEE80211_SDATA_OPERATING_GMODE: operating in G-only mode -* @IEEE80211_SDATA_DONT_BRIDGE_PACKETS: bridge packets between +* @MAC80211_SDATA_ALLMULTI: interface wants all multicast packets +* @MAC80211_SDATA_PROMISC: interface is promisc +* @MAC80211_SDATA_OPERATING_GMODE: operating in G-only mode +* @MAC80211_SDATA_DONT_BRIDGE_PACKETS: bridge packets between * associated stations and deliver multicast frames both * back to wireless media and to the local net stack. */ -enum ieee80211_sub_if_data_flags { -IEEE80211_SDATA_ALLMULTI =BIT (0 ), -IEEE80211_SDATA_PROMISC =BIT (1 ), -IEEE80211_SDATA_OPERATING_GMODE =BIT (2 ), -IEEE80211_SDATA_DONT_BRIDGE_PACKETS =BIT (3 ), +enum mac80211_sub_if_data_flags { +MAC80211_SDATA_ALLMULTI =BIT (0 ), +MAC80211_SDATA_PROMISC =BIT (1 ), +MAC80211_SDATA_OPERATING_GMODE =BIT (2 ), +MAC80211_SDATA_DONT_BRIDGE_PACKETS =BIT (3 ), };/**
@@ -622,9 +622,9 @@ struct ieee80211_sub_if_data *vif_to_sdata(struct ieee80211_vif *p) }enum sdata_queue_type { -IEEE80211_SDATA_QUEUE_TYPE_FRAME =0 , -IEEE80211_SDATA_QUEUE_AGG_START =1 , -IEEE80211_SDATA_QUEUE_AGG_STOP =2 , +MAC80211_SDATA_QUEUE_TYPE_FRAME =0 , +MAC80211_SDATA_QUEUE_AGG_START =1 , +MAC80211_SDATA_QUEUE_AGG_STOP =2 , };enum {
net/mac80211/mlme.c +2 -2
@@ -1527,9 +1527,9 @@ static bool ieee80211_assoc_success(struct mac80211_work *wk,/* cf. IEEE 802.11 9.2.12 */ if (wk->chan->band ==IEEE80211_BAND_2GHZ && have_higher_than_11mbit) - sdata->flags |=IEEE80211_SDATA_OPERATING_GMODE ; + sdata->flags |=MAC80211_SDATA_OPERATING_GMODE ;else - sdata->flags &= ~IEEE80211_SDATA_OPERATING_GMODE ; + sdata->flags &= ~MAC80211_SDATA_OPERATING_GMODE ;if (elems.ht_cap_elem && !(ifmgd->flags &MAC80211_STA_DISABLE_11N )) ieee80211_ht_cap_ie_to_sta_ht_cap(sband,
net/mac80211/rx.c +4 -4
@@ -781,7 +781,7 @@ static void ieee80211_rx_reorder_ampdu(struct mac80211_rx_data *rx)/* if this mpdu is fragmented - terminate rx aggregation session */ sc =le16_to_cpu (hdr->seq_ctrl);if (sc &IEEE80211_SCTL_FRAG ) { - skb->pkt_type =IEEE80211_SDATA_QUEUE_TYPE_FRAME ; + skb->pkt_type =MAC80211_SDATA_QUEUE_TYPE_FRAME ;skb_queue_tail (&rx->sdata->skb_queue, skb);ieee80211_queue_work (&local->hw, &rx->sdata->work);return ;
@@ -1674,7 +1674,7 @@ ieee80211_deliver_skb(struct mac80211_rx_data *rx)if ((sdata->vif.type ==NL80211_IFTYPE_AP || sdata->vif.type ==NL80211_IFTYPE_AP_VLAN ) && - !(sdata->flags &IEEE80211_SDATA_DONT_BRIDGE_PACKETS ) && + !(sdata->flags &MAC80211_SDATA_DONT_BRIDGE_PACKETS ) && (status->rx_flags &MAC80211_RX_RA_MATCH ) && (sdata->vif.type !=NL80211_IFTYPE_AP_VLAN || !sdata->u.vlan.sta)) {if (is_multicast_ether_addr (ehdr->h_dest)) {
@@ -2234,7 +2234,7 @@ ieee80211_rx_h_action(struct mac80211_rx_data *rx)return RX_QUEUED ; queue: - rx->skb->pkt_type =IEEE80211_SDATA_QUEUE_TYPE_FRAME ; + rx->skb->pkt_type =MAC80211_SDATA_QUEUE_TYPE_FRAME ;skb_queue_tail (&sdata->skb_queue, rx->skb);ieee80211_queue_work (&local->hw, &sdata->work);if (rx->sta)
@@ -2364,7 +2364,7 @@ ieee80211_rx_h_mgmt(struct mac80211_rx_data *rx) }/* queue up frame and kick off work to process it */ - rx->skb->pkt_type =IEEE80211_SDATA_QUEUE_TYPE_FRAME ; + rx->skb->pkt_type =MAC80211_SDATA_QUEUE_TYPE_FRAME ;skb_queue_tail (&sdata->skb_queue, rx->skb);ieee80211_queue_work (&rx->local->hw, &sdata->work);if (rx->sta)
net/mac80211/tx.c +1 -1
@@ -126,7 +126,7 @@ static __le16 ieee80211_duration(struct mac80211_tx_data *tx, int group_addr,switch (sband->band) {case IEEE80211_BAND_2GHZ : {u32 flag; -if (tx->sdata->flags &IEEE80211_SDATA_OPERATING_GMODE ) +if (tx->sdata->flags &MAC80211_SDATA_OPERATING_GMODE ) flag =IEEE80211_RATE_MANDATORY_G ;else flag =IEEE80211_RATE_MANDATORY_B ;
net/mac80211/util.c +6 -6
@@ -174,7 +174,7 @@ __le16 ieee80211_generic_frame_duration(struct ieee80211_hw *hw,if (vif) { sdata =vif_to_sdata (vif); short_preamble = sdata->vif.bss_conf.use_short_preamble; -if (sdata->flags &IEEE80211_SDATA_OPERATING_GMODE ) +if (sdata->flags &MAC80211_SDATA_OPERATING_GMODE ) erp = rate->flags &IEEE80211_RATE_ERP_G ; }
@@ -207,7 +207,7 @@ __le16 ieee80211_rts_duration(struct ieee80211_hw *hw,if (vif) { sdata =vif_to_sdata (vif); short_preamble = sdata->vif.bss_conf.use_short_preamble; -if (sdata->flags &IEEE80211_SDATA_OPERATING_GMODE ) +if (sdata->flags &MAC80211_SDATA_OPERATING_GMODE ) erp = rate->flags &IEEE80211_RATE_ERP_G ; }
@@ -247,7 +247,7 @@ __le16 ieee80211_ctstoself_duration(struct ieee80211_hw *hw,if (vif) { sdata =vif_to_sdata (vif); short_preamble = sdata->vif.bss_conf.use_short_preamble; -if (sdata->flags &IEEE80211_SDATA_OPERATING_GMODE ) +if (sdata->flags &MAC80211_SDATA_OPERATING_GMODE ) erp = rate->flags &IEEE80211_RATE_ERP_G ; }
@@ -753,7 +753,7 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata)memset (&qparam,0 ,sizeof (qparam)); use_11b = (local->hw.conf.channel->band ==IEEE80211_BAND_2GHZ ) && - !(sdata->flags &IEEE80211_SDATA_OPERATING_GMODE ); + !(sdata->flags &MAC80211_SDATA_OPERATING_GMODE );for (queue =0 ; queue <local_to_hw (local)->queues; queue++) {/* Set defaults according to 802.11-2007 Table 7-37 */
@@ -826,9 +826,9 @@ void ieee80211_sta_def_wmm_params(struct ieee80211_sub_if_data *sdata,if (local->hw.conf.channel->band ==IEEE80211_BAND_2GHZ && have_higher_than_11mbit) - sdata->flags |=IEEE80211_SDATA_OPERATING_GMODE ; + sdata->flags |=MAC80211_SDATA_OPERATING_GMODE ;else - sdata->flags &= ~IEEE80211_SDATA_OPERATING_GMODE ; + sdata->flags &= ~MAC80211_SDATA_OPERATING_GMODE ;ieee80211_set_wmm_default (sdata); }
RFC PATCH 23/27 mac80211: rename ieee80211_sdata_state_bits to mac80211_sdata_state_bits
In reply to Kalle Valo--- net/mac80211/mac80211_i.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
net/mac80211/mac80211_i.h +2 -2
@@ -524,14 +524,14 @@ enum mac80211_sub_if_data_flags { };/** -* enum ieee80211_sdata_state_bits - virtual interface state bits +* enum mac80211_sdata_state_bits - virtual interface state bits * @SDATA_STATE_RUNNING: virtual interface is up & running; this * mirrors netif_running() but is separate for interface type * change handling while the interface is up * @SDATA_STATE_OFFCHANNEL: This interface is currently in offchannel * mode, so queues are stopped */ -enum ieee80211_sdata_state_bits { +enum mac80211_sdata_state_bits {SDATA_STATE_RUNNING ,SDATA_STATE_OFFCHANNEL , };
RFC PATCH 24/27 mac80211: ieee80211_sub_if_data to mac80211_sub_if_data
In reply to Kalle Valo--- net/mac80211/agg-rx.c | 2 - net/mac80211/agg-tx.c | 18 +++--- net/mac80211/cfg.c | 90 ++++++++++++++-------------- net/mac80211/chan.c | 10 ++- net/mac80211/debugfs_key.c | 6 +- net/mac80211/debugfs_key.h | 12 ++-- net/mac80211/debugfs_netdev.c | 50 ++++++++-------- net/mac80211/debugfs_netdev.h | 12 ++-- net/mac80211/driver-ops.h | 24 ++++--- net/mac80211/driver-trace.h | 44 +++++++------- net/mac80211/event.c | 2 - net/mac80211/ht.c | 12 ++-- net/mac80211/ibss.c | 44 +++++++------- net/mac80211/iface.c | 48 +++++++-------- net/mac80211/key.c | 26 ++++---- net/mac80211/key.h | 16 ++--- net/mac80211/mac80211_i.h | 132 +++++++++++++++++++++-------------------- net/mac80211/main.c | 6 +- net/mac80211/mesh.c | 48 +++++++-------- net/mac80211/mesh.h | 74 +++++++++++------------ net/mac80211/mesh_hwmp.c | 26 ++++---- net/mac80211/mesh_pathtbl.c | 24 ++++--- net/mac80211/mesh_plink.c | 22 +++---- net/mac80211/mlme.c | 124 +++++++++++++++++++-------------------- net/mac80211/offchannel.c | 12 ++-- net/mac80211/pm.c | 4 + net/mac80211/rate.c | 2 - net/mac80211/rate.h | 2 - net/mac80211/rx.c | 42 +++++++------ net/mac80211/scan.c | 18 +++--- net/mac80211/spectmgmt.c | 4 + net/mac80211/sta_info.c | 30 +++++---- net/mac80211/sta_info.h | 18 +++--- net/mac80211/status.c | 4 + net/mac80211/tkip.c | 4 + net/mac80211/tx.c | 32 +++++----- net/mac80211/util.c | 30 +++++---- net/mac80211/wme.c | 2 - net/mac80211/wme.h | 2 - net/mac80211/work.c | 24 ++++--- 40 files changed, 551 insertions(+), 551 deletions(-)
net/mac80211/agg-rx.c +1 -1
@@ -134,7 +134,7 @@ static void sta_rx_agg_reorder_timer_expired(unsigned long data)rcu_read_unlock (); } -static void ieee80211_send_addba_resp (struct ieee80211_sub_if_data *sdata,u8 *da,u16 tid, +static void ieee80211_send_addba_resp (struct mac80211_sub_if_data *sdata,u8 *da,u16 tid,u8 dialog_token,u16 status,u16 policy,u16 buf_size,u16 timeout) {
net/mac80211/agg-tx.c +9 -9
@@ -56,7 +56,7 @@* and the driver must later call ieee80211_stop_tx_ba_cb_irqsafe(). */ -static void ieee80211_send_addba_request (struct ieee80211_sub_if_data *sdata, +static void ieee80211_send_addba_request (struct mac80211_sub_if_data *sdata,const u8 *da,u16 tid,u8 dialog_token,u16 start_seq_num,u16 agg_size,u16 timeout)
@@ -106,7 +106,7 @@ static void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata,ieee80211_tx_skb (sdata, skb); } -void ieee80211_send_bar (struct ieee80211_sub_if_data *sdata,u8 *ra,u16 tid,u16 ssn) +void ieee80211_send_bar (struct mac80211_sub_if_data *sdata,u8 *ra,u16 tid,u16 ssn) {struct mac80211_local *local = sdata->local;struct sk_buff *skb;
@@ -296,7 +296,7 @@ void ieee80211_tx_ba_session_handle_start(struct sta_info *sta, int tid) {struct tid_ampdu_tx *tid_tx;struct mac80211_local *local = sta->local; -struct ieee80211_sub_if_data *sdata = sta->sdata; +struct mac80211_sub_if_data *sdata = sta->sdata;u16 start_seq_num;int ret;
@@ -361,7 +361,7 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, u16 timeout) { struct sta_info *sta = container_of(pubsta, struct sta_info, sta); -struct ieee80211_sub_if_data *sdata = sta->sdata; +struct mac80211_sub_if_data *sdata = sta->sdata;struct mac80211_local *local = sdata->local;struct tid_ampdu_tx *tid_tx;int ret =0 ;
@@ -528,7 +528,7 @@ static void ieee80211_agg_tx_operational(struct mac80211_local *local,void ieee80211_start_tx_ba_cb (struct ieee80211_vif *vif,u8 *ra,u16 tid) { -struct ieee80211_sub_if_data *sdata =vif_to_sdata (vif); +struct mac80211_sub_if_data *sdata =vif_to_sdata (vif);struct mac80211_local *local = sdata->local;struct sta_info *sta;struct tid_ampdu_tx *tid_tx;
@@ -577,7 +577,7 @@ void ieee80211_start_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u16 tid)void ieee80211_start_tx_ba_cb_irqsafe (struct ieee80211_vif *vif,const u8 *ra,u16 tid) { -struct ieee80211_sub_if_data *sdata =vif_to_sdata (vif); +struct mac80211_sub_if_data *sdata =vif_to_sdata (vif);struct mac80211_local *local = sdata->local;struct ieee80211_ra_tid *ra_tid;struct sk_buff *skb =dev_alloc_skb (0 );
@@ -618,7 +618,7 @@ int __ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid,int ieee80211_stop_tx_ba_session (struct ieee80211_sta *pubsta,u16 tid) { struct sta_info *sta = container_of(pubsta, struct sta_info, sta); -struct ieee80211_sub_if_data *sdata = sta->sdata; +struct mac80211_sub_if_data *sdata = sta->sdata;struct mac80211_local *local = sdata->local;struct tid_ampdu_tx *tid_tx;int ret =0 ;
@@ -656,7 +656,7 @@ EXPORT_SYMBOL(ieee80211_stop_tx_ba_session);void ieee80211_stop_tx_ba_cb (struct ieee80211_vif *vif,u8 *ra,u8 tid) { -struct ieee80211_sub_if_data *sdata =vif_to_sdata (vif); +struct mac80211_sub_if_data *sdata =vif_to_sdata (vif);struct mac80211_local *local = sdata->local;struct sta_info *sta;struct tid_ampdu_tx *tid_tx;
@@ -730,7 +730,7 @@ void ieee80211_stop_tx_ba_cb(struct ieee80211_vif *vif, u8 *ra, u8 tid)void ieee80211_stop_tx_ba_cb_irqsafe (struct ieee80211_vif *vif,const u8 *ra,u16 tid) { -struct ieee80211_sub_if_data *sdata =vif_to_sdata (vif); +struct mac80211_sub_if_data *sdata =vif_to_sdata (vif);struct mac80211_local *local = sdata->local;struct ieee80211_ra_tid *ra_tid;struct sk_buff *skb =dev_alloc_skb (0 );
net/mac80211/cfg.c +45 -45
356 lines not on this page · raw message
net/mac80211/chan.c +5 -5
@@ -7,9 +7,9 @@static enum ieee80211_chan_mode __ieee80211_get_channel_mode (struct mac80211_local *local, -struct ieee80211_sub_if_data *ignore) +struct mac80211_sub_if_data *ignore) { -struct ieee80211_sub_if_data *sdata; +struct mac80211_sub_if_data *sdata;lockdep_assert_held (&local->iflist_mtx);
@@ -46,7 +46,7 @@ __ieee80211_get_channel_mode(struct mac80211_local *local,enum ieee80211_chan_mode ieee80211_get_channel_mode (struct mac80211_local *local, -struct ieee80211_sub_if_data *ignore) +struct mac80211_sub_if_data *ignore) {enum ieee80211_chan_mode mode;
@@ -58,10 +58,10 @@ ieee80211_get_channel_mode(struct mac80211_local *local, }bool ieee80211_set_channel_type (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,enum nl80211_channel_type chantype) { -struct ieee80211_sub_if_data *tmp; +struct mac80211_sub_if_data *tmp;enum nl80211_channel_type superchan =NL80211_CHAN_NO_HT ;bool result;
net/mac80211/debugfs_key.c +3 -3
@@ -271,7 +271,7 @@ void ieee80211_debugfs_key_remove(struct ieee80211_key *key) key->debugfs.dir =NULL ; } -void ieee80211_debugfs_key_update_default (struct ieee80211_sub_if_data *sdata) +void ieee80211_debugfs_key_update_default (struct mac80211_sub_if_data *sdata) {char buf[50 ];struct ieee80211_key *key;
@@ -306,7 +306,7 @@ void ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data *sdata) } } -void ieee80211_debugfs_key_add_mgmt_default (struct ieee80211_sub_if_data *sdata) +void ieee80211_debugfs_key_add_mgmt_default (struct mac80211_sub_if_data *sdata) {char buf[50 ];struct ieee80211_key *key;
@@ -325,7 +325,7 @@ void ieee80211_debugfs_key_add_mgmt_default(struct ieee80211_sub_if_data *sdata)ieee80211_debugfs_key_remove_mgmt_default (sdata); } -void ieee80211_debugfs_key_remove_mgmt_default (struct ieee80211_sub_if_data *sdata) +void ieee80211_debugfs_key_remove_mgmt_default (struct mac80211_sub_if_data *sdata) {if (!sdata)return ;
net/mac80211/debugfs_key.h +6 -6
@@ -4,11 +4,11 @@#ifdef CONFIG_MAC80211_DEBUGFS void ieee80211_debugfs_key_add (struct ieee80211_key *key);void ieee80211_debugfs_key_remove (struct ieee80211_key *key); -void ieee80211_debugfs_key_update_default (struct ieee80211_sub_if_data *sdata); +void ieee80211_debugfs_key_update_default (struct mac80211_sub_if_data *sdata);void ieee80211_debugfs_key_add_mgmt_default ( -struct ieee80211_sub_if_data *sdata); +struct mac80211_sub_if_data *sdata);void ieee80211_debugfs_key_remove_mgmt_default ( -struct ieee80211_sub_if_data *sdata); +struct mac80211_sub_if_data *sdata);void ieee80211_debugfs_key_sta_del (struct ieee80211_key *key,struct sta_info *sta);#else
@@ -17,13 +17,13 @@ static inline void ieee80211_debugfs_key_add(struct ieee80211_key *key)static inline void ieee80211_debugfs_key_remove (struct ieee80211_key *key) {}static inline void ieee80211_debugfs_key_update_default ( -struct ieee80211_sub_if_data *sdata) +struct mac80211_sub_if_data *sdata) {}static inline void ieee80211_debugfs_key_add_mgmt_default ( -struct ieee80211_sub_if_data *sdata) +struct mac80211_sub_if_data *sdata) {}static inline void ieee80211_debugfs_key_remove_mgmt_default ( -struct ieee80211_sub_if_data *sdata) +struct mac80211_sub_if_data *sdata) {}static inline void ieee80211_debugfs_key_sta_del (struct ieee80211_key *key,struct sta_info *sta)
net/mac80211/debugfs_netdev.c +25 -25
192 lines not on this page · raw message
net/mac80211/debugfs_netdev.h +6 -6
@@ -4,18 +4,18 @@#define __IEEE80211_DEBUGFS_NETDEV_H#ifdef CONFIG_MAC80211_DEBUGFS -void ieee80211_debugfs_add_netdev (struct ieee80211_sub_if_data *sdata); -void ieee80211_debugfs_remove_netdev (struct ieee80211_sub_if_data *sdata); -void ieee80211_debugfs_rename_netdev (struct ieee80211_sub_if_data *sdata); +void ieee80211_debugfs_add_netdev (struct mac80211_sub_if_data *sdata); +void ieee80211_debugfs_remove_netdev (struct mac80211_sub_if_data *sdata); +void ieee80211_debugfs_rename_netdev (struct mac80211_sub_if_data *sdata);#else static inline void ieee80211_debugfs_add_netdev ( -struct ieee80211_sub_if_data *sdata) +struct mac80211_sub_if_data *sdata) {}static inline void ieee80211_debugfs_remove_netdev ( -struct ieee80211_sub_if_data *sdata) +struct mac80211_sub_if_data *sdata) {}static inline void ieee80211_debugfs_rename_netdev ( -struct ieee80211_sub_if_data *sdata) +struct mac80211_sub_if_data *sdata) {}#endif
net/mac80211/driver-ops.h +12 -12
@@ -82,7 +82,7 @@ static inline int drv_add_interface(struct mac80211_local *local, }static inline int drv_change_interface (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,enum nl80211_iftype type,bool p2p) {int ret;
@@ -118,7 +118,7 @@ static inline int drv_config(struct mac80211_local *local, u32 changed) }static inline void drv_bss_info_changed (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,struct ieee80211_bss_conf *info,u32 changed) {
@@ -172,7 +172,7 @@ static inline int drv_set_tim(struct mac80211_local *local,static inline int drv_set_key (struct mac80211_local *local,enum set_key_cmd cmd, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,struct ieee80211_sta *sta,struct ieee80211_key_conf *key) {
@@ -187,7 +187,7 @@ static inline int drv_set_key(struct mac80211_local *local, }static inline void drv_update_tkip_key (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,struct ieee80211_key_conf *conf,struct sta_info *sta,u32 iv32,u16 *phase1key)
@@ -205,7 +205,7 @@ static inline void drv_update_tkip_key(struct mac80211_local *local, }static inline int drv_hw_scan (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,struct cfg80211_scan_request *req) {int ret;
@@ -220,7 +220,7 @@ static inline int drv_hw_scan(struct mac80211_local *local,static inline int drv_sched_scan_start (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,struct cfg80211_sched_scan_request *req,struct ieee80211_sched_scan_ies *ies) {
@@ -236,7 +236,7 @@ drv_sched_scan_start(struct mac80211_local *local, }static inline void drv_sched_scan_stop (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata) +struct mac80211_sub_if_data *sdata) {might_sleep ();
@@ -332,7 +332,7 @@ static inline int drv_set_coverage_class(struct mac80211_local *local, }static inline void drv_sta_notify (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,enum sta_notify_cmd cmd,struct ieee80211_sta *sta) {
@@ -343,7 +343,7 @@ static inline void drv_sta_notify(struct mac80211_local *local, }static inline int drv_sta_add (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,struct ieee80211_sta *sta) {int ret =0 ;
@@ -360,7 +360,7 @@ static inline int drv_sta_add(struct mac80211_local *local, }static inline void drv_sta_remove (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,struct ieee80211_sta *sta) {might_sleep ();
@@ -433,7 +433,7 @@ static inline int drv_tx_last_beacon(struct mac80211_local *local) }static inline int drv_ampdu_action (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,enum ieee80211_ampdu_mlme_action action,struct ieee80211_sta *sta,u16 tid,u16 *ssn,u8 buf_size)
@@ -621,7 +621,7 @@ static inline bool drv_tx_frames_pending(struct mac80211_local *local) }static inline int drv_set_bitrate_mask (struct mac80211_local *local, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,const struct cfg80211_bitrate_mask *mask) {int ret = -EOPNOTSUPP ;
net/mac80211/driver-trace.h +22 -22
173 lines not on this page · raw message
net/mac80211/event.c +1 -1
@@ -15,7 +15,7 @@* the frame that generated the MIC failure (i.e., if it was provided by the * driver or is still in the frame), it should provide that information. */ -void mac80211_ev_michael_mic_failure (struct ieee80211_sub_if_data *sdata,int keyidx, +void mac80211_ev_michael_mic_failure (struct mac80211_sub_if_data *sdata,int keyidx,struct ieee80211_hdr *hdr,const u8 *tsc,gfp_t gfp) {
net/mac80211/ht.c +6 -6
@@ -170,7 +170,7 @@ void ieee80211_ba_session_work(struct work_struct *work)mutex_unlock (&sta->ampdu_mlme.mtx); } -void ieee80211_send_delba (struct ieee80211_sub_if_data *sdata, +void ieee80211_send_delba (struct mac80211_sub_if_data *sdata,const u8 *da,u16 tid,u16 initiator,u16 reason_code) {
@@ -214,7 +214,7 @@ void ieee80211_send_delba(struct ieee80211_sub_if_data *sdata,ieee80211_tx_skb (sdata, skb); } -void ieee80211_process_delba (struct ieee80211_sub_if_data *sdata, +void ieee80211_process_delba (struct mac80211_sub_if_data *sdata,struct sta_info *sta,struct ieee80211_mgmt *mgmt,size_t len) {
@@ -240,7 +240,7 @@ void ieee80211_process_delba(struct ieee80211_sub_if_data *sdata, true); } -int ieee80211_send_smps_action (struct ieee80211_sub_if_data *sdata, +int ieee80211_send_smps_action (struct mac80211_sub_if_data *sdata,enum ieee80211_smps_mode smps,const u8 *da,const u8 *bssid) {
@@ -289,8 +289,8 @@ int ieee80211_send_smps_action(struct ieee80211_sub_if_data *sdata,void ieee80211_request_smps_work (struct work_struct *work) { -struct ieee80211_sub_if_data *sdata = - container_of(work, struct ieee80211_sub_if_data, +struct mac80211_sub_if_data *sdata = + container_of(work, struct mac80211_sub_if_data, u.mgd.request_smps_work);mutex_lock (&sdata->u.mgd.mtx);
@@ -301,7 +301,7 @@ void ieee80211_request_smps_work(struct work_struct *work)void ieee80211_request_smps (struct ieee80211_vif *vif,enum ieee80211_smps_mode smps_mode) { -struct ieee80211_sub_if_data *sdata =vif_to_sdata (vif); +struct mac80211_sub_if_data *sdata =vif_to_sdata (vif);if (WARN_ON (vif->type !=NL80211_IFTYPE_STATION ))return ;
net/mac80211/ibss.c +22 -22
170 lines not on this page · raw message
net/mac80211/iface.c +24 -24
183 lines not on this page · raw message
net/mac80211/key.c +13 -13
@@ -63,7 +63,7 @@ static struct ieee80211_sta *get_sta_for_key(struct ieee80211_key *key)static int ieee80211_key_enable_hw_accel (struct ieee80211_key *key) { -struct ieee80211_sub_if_data *sdata; +struct mac80211_sub_if_data *sdata;struct ieee80211_sta *sta;int ret;
@@ -93,7 +93,7 @@ static int ieee80211_key_enable_hw_accel(struct ieee80211_key *key)if (!(key->conf.flags &IEEE80211_KEY_FLAG_PAIRWISE )) goto out_unsupported; sdata =container_of (sdata->bss, - struct ieee80211_sub_if_data, + struct mac80211_sub_if_data, u.ap); }
@@ -130,7 +130,7 @@ static int ieee80211_key_enable_hw_accel(struct ieee80211_key *key)static void ieee80211_key_disable_hw_accel (struct ieee80211_key *key) { -struct ieee80211_sub_if_data *sdata; +struct mac80211_sub_if_data *sdata;struct ieee80211_sta *sta;int ret;
@@ -149,7 +149,7 @@ static void ieee80211_key_disable_hw_accel(struct ieee80211_key *key)if (sdata->vif.type ==NL80211_IFTYPE_AP_VLAN ) sdata =container_of (sdata->bss, - struct ieee80211_sub_if_data, + struct mac80211_sub_if_data, u.ap); ret = drv_set_key(key->local, DISABLE_KEY, sdata,
@@ -187,7 +187,7 @@ void ieee80211_key_removed(struct ieee80211_key_conf *key_conf) }EXPORT_SYMBOL_GPL (ieee80211_key_removed); -static void __ieee80211_set_default_key (struct ieee80211_sub_if_data *sdata, +static void __ieee80211_set_default_key (struct mac80211_sub_if_data *sdata,int idx,bool uni,bool multi) {struct ieee80211_key *key =NULL ;
@@ -205,7 +205,7 @@ static void __ieee80211_set_default_key(struct ieee80211_sub_if_data *sdata,ieee80211_debugfs_key_update_default (sdata); } -void ieee80211_set_default_key (struct ieee80211_sub_if_data *sdata,int idx, +void ieee80211_set_default_key (struct mac80211_sub_if_data *sdata,int idx,bool uni,bool multi) {mutex_lock (&sdata->local->key_mtx);
@@ -214,7 +214,7 @@ void ieee80211_set_default_key(struct ieee80211_sub_if_data *sdata, int idx, }static void -__ieee80211_set_default_mgmt_key (struct ieee80211_sub_if_data *sdata,int idx) +__ieee80211_set_default_mgmt_key (struct mac80211_sub_if_data *sdata,int idx) {struct ieee80211_key *key =NULL ;
@@ -229,7 +229,7 @@ __ieee80211_set_default_mgmt_key(struct ieee80211_sub_if_data *sdata, int idx)ieee80211_debugfs_key_update_default (sdata); } -void ieee80211_set_default_mgmt_key (struct ieee80211_sub_if_data *sdata, +void ieee80211_set_default_mgmt_key (struct mac80211_sub_if_data *sdata,int idx) {mutex_lock (&sdata->local->key_mtx);
@@ -238,7 +238,7 @@ void ieee80211_set_default_mgmt_key(struct ieee80211_sub_if_data *sdata, } -static void __ieee80211_key_replace(struct ieee80211_sub_if_data *sdata, +static void __ieee80211_key_replace(struct mac80211_sub_if_data *sdata, struct sta_info *sta, bool pairwise, struct ieee80211_key *old,
@@ -412,7 +412,7 @@ static void __ieee80211_key_destroy(struct ieee80211_key *key) }int ieee80211_key_link (struct ieee80211_key *key, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,struct sta_info *sta) {struct ieee80211_key *old_key;
@@ -500,7 +500,7 @@ void ieee80211_key_free(struct mac80211_local *local,mutex_unlock (&local->key_mtx); } -void ieee80211_enable_keys (struct ieee80211_sub_if_data *sdata) +void ieee80211_enable_keys (struct mac80211_sub_if_data *sdata) {struct ieee80211_key *key;
@@ -521,7 +521,7 @@ void ieee80211_enable_keys(struct ieee80211_sub_if_data *sdata)mutex_unlock (&sdata->local->key_mtx); } -void ieee80211_disable_keys (struct ieee80211_sub_if_data *sdata) +void ieee80211_disable_keys (struct mac80211_sub_if_data *sdata) {struct ieee80211_key *key;
@@ -535,7 +535,7 @@ void ieee80211_disable_keys(struct ieee80211_sub_if_data *sdata)mutex_unlock (&sdata->local->key_mtx); } -void ieee80211_free_keys (struct ieee80211_sub_if_data *sdata) +void ieee80211_free_keys (struct mac80211_sub_if_data *sdata) {struct ieee80211_key *key, *tmp;
net/mac80211/key.h +8 -8
@@ -32,7 +32,7 @@#define NUM_RX_DATA_QUEUES 17struct mac80211_local ; -struct ieee80211_sub_if_data ; +struct mac80211_sub_if_data ;struct sta_info ;/**
@@ -60,7 +60,7 @@ struct tkip_ctx {struct ieee80211_key {struct mac80211_local *local; -struct ieee80211_sub_if_data *sdata; +struct mac80211_sub_if_data *sdata;struct sta_info *sta;/* for sdata list */
@@ -133,18 +133,18 @@ struct ieee80211_key *ieee80211_key_alloc(u32 cipher, int idx, size_t key_len,* to make it used, free old key. */ int __must_check ieee80211_key_link (struct ieee80211_key *key, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,struct sta_info *sta);void __ieee80211_key_free (struct ieee80211_key *key);void ieee80211_key_free (struct mac80211_local *local,struct ieee80211_key *key); -void ieee80211_set_default_key (struct ieee80211_sub_if_data *sdata,int idx, +void ieee80211_set_default_key (struct mac80211_sub_if_data *sdata,int idx,bool uni,bool multi); -void ieee80211_set_default_mgmt_key (struct ieee80211_sub_if_data *sdata, +void ieee80211_set_default_mgmt_key (struct mac80211_sub_if_data *sdata,int idx); -void ieee80211_free_keys (struct ieee80211_sub_if_data *sdata); -void ieee80211_enable_keys (struct ieee80211_sub_if_data *sdata); -void ieee80211_disable_keys (struct ieee80211_sub_if_data *sdata); +void ieee80211_free_keys (struct mac80211_sub_if_data *sdata); +void ieee80211_enable_keys (struct mac80211_sub_if_data *sdata); +void ieee80211_disable_keys (struct mac80211_sub_if_data *sdata);#define key_mtx_dereference (local, ref) \ rcu_dereference_protected(ref, lockdep_is_held(&((local)->key_mtx)))
net/mac80211/mac80211_i.h +66 -66
319 lines not on this page · raw message
net/mac80211/main.c +3 -3
@@ -231,7 +231,7 @@ int ieee80211_hw_config(struct mac80211_local *local, u32 changed)return ret; } -void ieee80211_bss_info_change_notify (struct ieee80211_sub_if_data *sdata, +void ieee80211_bss_info_change_notify (struct mac80211_sub_if_data *sdata,u32 changed) {struct mac80211_local *local = sdata->local;
@@ -312,7 +312,7 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,drv_bss_info_changed (local, sdata, &sdata->vif.bss_conf, changed); } -u32 ieee80211_reset_erp_info (struct ieee80211_sub_if_data *sdata) +u32 ieee80211_reset_erp_info (struct mac80211_sub_if_data *sdata) { sdata->vif.bss_conf.use_cts_prot = false; sdata->vif.bss_conf.use_short_preamble = false;
@@ -407,7 +407,7 @@ static int ieee80211_ifa_changed(struct notifier_block *nb,struct net_device *ndev = ifa->ifa_dev->dev;struct wireless_dev *wdev = ndev->ieee80211_ptr;struct in_device *idev; -struct ieee80211_sub_if_data *sdata; +struct mac80211_sub_if_data *sdata;struct ieee80211_bss_conf *bss_conf;struct mac80211_if_managed *ifmgd;int c =0 ;
net/mac80211/mesh.c +24 -24
180 lines not on this page · raw message
net/mac80211/mesh.h +37 -37
159 lines not on this page · raw message
net/mac80211/mesh_hwmp.c +13 -13
@@ -108,7 +108,7 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, u8 *orig_addr, __le32 orig_sn, u8 target_flags, u8 *target, __le32 target_sn, const u8 *da, u8 hop_count, u8 ttl, __le32 lifetime, __le32 metric, __le32 preq_id, - struct ieee80211_sub_if_data *sdata) + struct mac80211_sub_if_data *sdata) { struct mac80211_local *local = sdata->local;struct sk_buff *skb =dev_alloc_skb (local->hw.extra_tx_headroom +400 );
@@ -202,7 +202,7 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags,*/ int mesh_path_error_tx (u8 ttl,u8 *target,__le32 target_sn,__le16 target_rcode,const u8 *ra, -struct ieee80211_sub_if_data *sdata) +struct mac80211_sub_if_data *sdata) {struct mac80211_local *local = sdata->local;struct sk_buff *skb =dev_alloc_skb (local->hw.extra_tx_headroom +400 );
@@ -321,7 +321,7 @@ static u32 airtime_link_metric_get(struct mac80211_local *local,* Notes: this function is the only place (besides user-provided info) where * path routing information is updated. */ -static u32 hwmp_route_info_get (struct ieee80211_sub_if_data *sdata, +static u32 hwmp_route_info_get (struct mac80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt,u8 *hwmp_ie,enum mpath_frame_type action) {
@@ -465,7 +465,7 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_data *sdata,return process ? new_metric :0 ; } -static void hwmp_preq_frame_process (struct ieee80211_sub_if_data *sdata, +static void hwmp_preq_frame_process (struct mac80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt,u8 *preq_elem,u32 metric) {
@@ -568,7 +568,7 @@ next_hop_deref_protected(struct mesh_path *mpath) } -static void hwmp_prep_frame_process (struct ieee80211_sub_if_data *sdata, +static void hwmp_prep_frame_process (struct mac80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt,u8 *prep_elem,u32 metric) {
@@ -633,7 +633,7 @@ fail: sdata->u.mesh.mshstats.dropped_frames_no_route++; } -static void hwmp_perr_frame_process (struct ieee80211_sub_if_data *sdata, +static void hwmp_perr_frame_process (struct mac80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt,u8 *perr_elem) {struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;
@@ -675,7 +675,7 @@ static void hwmp_perr_frame_process(struct ieee80211_sub_if_data *sdata,rcu_read_unlock (); } -static void hwmp_rann_frame_process (struct ieee80211_sub_if_data *sdata, +static void hwmp_rann_frame_process (struct mac80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt,struct ieee80211_rann_ie *rann) {
@@ -725,7 +725,7 @@ static void hwmp_rann_frame_process(struct ieee80211_sub_if_data *sdata, } -void mesh_rx_path_sel_frame (struct ieee80211_sub_if_data *sdata, +void mesh_rx_path_sel_frame (struct mac80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt,size_t len) {
@@ -782,7 +782,7 @@ void mesh_rx_path_sel_frame(struct ieee80211_sub_if_data *sdata,*/ static void mesh_queue_preq (struct mesh_path *mpath,u8 flags) { -struct ieee80211_sub_if_data *sdata = mpath->sdata; +struct mac80211_sub_if_data *sdata = mpath->sdata;struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mesh_preq_queue *preq_node;
@@ -827,7 +827,7 @@ static void mesh_queue_preq(struct mesh_path *mpath, u8 flags)* * @sdata: local mesh subif */ -void mesh_path_start_discovery (struct ieee80211_sub_if_data *sdata) +void mesh_path_start_discovery (struct mac80211_sub_if_data *sdata) {struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mesh_preq_queue *preq_node;
@@ -918,7 +918,7 @@ enddiscovery:* in this case. */ int mesh_nexthop_lookup (struct sk_buff *skb, -struct ieee80211_sub_if_data *sdata) +struct mac80211_sub_if_data *sdata) {struct sk_buff *skb_to_free =NULL ;struct mesh_path *mpath;
@@ -981,7 +981,7 @@ endlookup:void mesh_path_timer (unsigned long data) {struct mesh_path *mpath = (void *) data; -struct ieee80211_sub_if_data *sdata = mpath->sdata; +struct mac80211_sub_if_data *sdata = mpath->sdata;if (sdata->local->quiescing)return ;
@@ -1004,7 +1004,7 @@ void mesh_path_timer(unsigned long data) }void -mesh_path_tx_root_frame (struct ieee80211_sub_if_data *sdata) +mesh_path_tx_root_frame (struct mac80211_sub_if_data *sdata) {struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;
net/mac80211/mesh_pathtbl.c +12 -12
@@ -164,7 +164,7 @@ errcopy:return -ENOMEM ; } -static u32 mesh_table_hash (u8 *addr,struct ieee80211_sub_if_data *sdata, +static u32 mesh_table_hash (u8 *addr,struct mac80211_sub_if_data *sdata,struct mesh_table *tbl) {/* Use last four bytes of hw addr and interface index as hash index */
@@ -215,7 +215,7 @@ void mesh_path_assign_nexthop(struct mesh_path *mpath, struct sta_info *sta)* * Locking: must be called within a read rcu section. */ -struct mesh_path *mesh_path_lookup (u8 *dst,struct ieee80211_sub_if_data *sdata) +struct mesh_path *mesh_path_lookup (u8 *dst,struct mac80211_sub_if_data *sdata) {struct mesh_path *mpath;struct hlist_node *n;
@@ -242,7 +242,7 @@ struct mesh_path *mesh_path_lookup(u8 *dst, struct ieee80211_sub_if_data *sdata)return NULL ; } -struct mesh_path *mpp_path_lookup (u8 *dst,struct ieee80211_sub_if_data *sdata) +struct mesh_path *mpp_path_lookup (u8 *dst,struct mac80211_sub_if_data *sdata) {struct mesh_path *mpath;struct hlist_node *n;
@@ -279,7 +279,7 @@ struct mesh_path *mpp_path_lookup(u8 *dst, struct ieee80211_sub_if_data *sdata)* * Locking: must be called within a read rcu section. */ -struct mesh_path *mesh_path_lookup_by_idx (int idx,struct ieee80211_sub_if_data *sdata) +struct mesh_path *mesh_path_lookup_by_idx (int idx,struct mac80211_sub_if_data *sdata) {struct mesh_table *tbl =rcu_dereference (mesh_paths);struct mpath_node *node;
@@ -313,7 +313,7 @@ struct mesh_path *mesh_path_lookup_by_idx(int idx, struct ieee80211_sub_if_data* * State: the initial state of the new path is set to 0 */ -int mesh_path_add (u8 *dst,struct ieee80211_sub_if_data *sdata) +int mesh_path_add (u8 *dst,struct mac80211_sub_if_data *sdata) {struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mac80211_local *local = sdata->local;
@@ -445,7 +445,7 @@ void mesh_mpp_table_grow(void)write_unlock_bh (&pathtbl_resize_lock); } -int mpp_path_add (u8 *dst,u8 *mpp,struct ieee80211_sub_if_data *sdata) +int mpp_path_add (u8 *dst,u8 *mpp,struct mac80211_sub_if_data *sdata) {struct mac80211_if_mesh *ifmsh = &sdata->u.mesh;struct mac80211_local *local = sdata->local;
@@ -537,7 +537,7 @@ void mesh_plink_broken(struct sta_info *sta)struct mesh_path *mpath;struct mpath_node *node;struct hlist_node *p; -struct ieee80211_sub_if_data *sdata = sta->sdata; +struct mac80211_sub_if_data *sdata = sta->sdata;int i;rcu_read_lock ();
@@ -590,7 +590,7 @@ void mesh_path_flush_by_nexthop(struct sta_info *sta)rcu_read_unlock (); } -void mesh_path_flush (struct ieee80211_sub_if_data *sdata) +void mesh_path_flush (struct mac80211_sub_if_data *sdata) {struct mesh_table *tbl;struct mesh_path *mpath;
@@ -611,7 +611,7 @@ void mesh_path_flush(struct ieee80211_sub_if_data *sdata)static void mesh_path_node_reclaim (struct rcu_head *rp) { struct mpath_node *node = container_of(rp, struct mpath_node, rcu); -struct ieee80211_sub_if_data *sdata = node->mpath->sdata; +struct mac80211_sub_if_data *sdata = node->mpath->sdata;del_timer_sync (&node->mpath->timer);atomic_dec (&sdata->u.mesh.mpaths);
@@ -627,7 +627,7 @@ static void mesh_path_node_reclaim(struct rcu_head *rp)* * Returns: 0 if successful */ -int mesh_path_del (u8 *addr,struct ieee80211_sub_if_data *sdata) +int mesh_path_del (u8 *addr,struct mac80211_sub_if_data *sdata) {struct mesh_table *tbl;struct mesh_path *mpath;
@@ -694,7 +694,7 @@ void mesh_path_tx_pending(struct mesh_path *mpath)* Locking: the function must me called within a rcu_read_lock region */ void mesh_path_discard_frame (struct sk_buff *skb, -struct ieee80211_sub_if_data *sdata) +struct mac80211_sub_if_data *sdata) {struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;struct mesh_path *mpath;
@@ -814,7 +814,7 @@ int mesh_pathtbl_init(void)return 0 ; } -void mesh_path_expire (struct ieee80211_sub_if_data *sdata) +void mesh_path_expire (struct mac80211_sub_if_data *sdata) {struct mesh_table *tbl;struct mesh_path *mpath;
net/mac80211/mesh_plink.c +11 -11
@@ -61,14 +61,14 @@ enum plink_event { };static inline -void mesh_plink_inc_estab_count (struct ieee80211_sub_if_data *sdata) +void mesh_plink_inc_estab_count (struct mac80211_sub_if_data *sdata) {atomic_inc (&sdata->u.mesh.mshstats.estab_plinks);mesh_accept_plinks_update (sdata); }static inline -void mesh_plink_dec_estab_count (struct ieee80211_sub_if_data *sdata) +void mesh_plink_dec_estab_count (struct mac80211_sub_if_data *sdata) {atomic_dec (&sdata->u.mesh.mshstats.estab_plinks);mesh_accept_plinks_update (sdata);
@@ -92,7 +92,7 @@ static inline void mesh_plink_fsm_restart(struct sta_info *sta)* NOTE: This is just an alias for sta_info_alloc(), see notes * on it in the lifecycle management section! */ -static struct sta_info *mesh_plink_alloc (struct ieee80211_sub_if_data *sdata, +static struct sta_info *mesh_plink_alloc (struct mac80211_sub_if_data *sdata,u8 *hw_addr,u32 rates) {struct mac80211_local *local = sdata->local;
@@ -123,7 +123,7 @@ static struct sta_info *mesh_plink_alloc(struct ieee80211_sub_if_data *sdata,*/ static bool __mesh_plink_deactivate (struct sta_info *sta) { -struct ieee80211_sub_if_data *sdata = sta->sdata; +struct mac80211_sub_if_data *sdata = sta->sdata;bool deactivated = false;if (sta->plink_state ==NL80211_PLINK_ESTAB ) {
@@ -145,7 +145,7 @@ static bool __mesh_plink_deactivate(struct sta_info *sta)*/ void mesh_plink_deactivate (struct sta_info *sta) { -struct ieee80211_sub_if_data *sdata = sta->sdata; +struct mac80211_sub_if_data *sdata = sta->sdata;bool deactivated;spin_lock_bh (&sta->lock);
@@ -156,7 +156,7 @@ void mesh_plink_deactivate(struct sta_info *sta)ieee80211_bss_info_change_notify (sdata,BSS_CHANGED_BEACON ); } -static int mesh_plink_frame_tx (struct ieee80211_sub_if_data *sdata, +static int mesh_plink_frame_tx (struct mac80211_sub_if_data *sdata,enum plink_frame_type action,u8 *da,__le16 llid,__le16 plid,__le16 reason) {struct mac80211_local *local = sdata->local;
@@ -238,7 +238,7 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata, }void mesh_neighbour_update (u8 *hw_addr,u32 rates, -struct ieee80211_sub_if_data *sdata, +struct mac80211_sub_if_data *sdata,struct ieee802_11_elems *elems) {struct mac80211_local *local = sdata->local;
@@ -280,7 +280,7 @@ static void mesh_plink_timer(unsigned long data) {struct sta_info *sta;__le16 llid, plid, reason; -struct ieee80211_sub_if_data *sdata; +struct mac80211_sub_if_data *sdata;/* * This STA is valid because sta_info_destroy() will
@@ -378,7 +378,7 @@ static inline void mesh_plink_timer_set(struct sta_info *sta, int timeout)int mesh_plink_open (struct sta_info *sta) {__le16 llid; -struct ieee80211_sub_if_data *sdata = sta->sdata; +struct mac80211_sub_if_data *sdata = sta->sdata;if (!test_sta_flags (sta,WLAN_STA_AUTH ))return -EPERM ;
@@ -402,7 +402,7 @@ int mesh_plink_open(struct sta_info *sta)void mesh_plink_block (struct sta_info *sta) { -struct ieee80211_sub_if_data *sdata = sta->sdata; +struct mac80211_sub_if_data *sdata = sta->sdata;bool deactivated;spin_lock_bh (&sta->lock);
@@ -415,7 +415,7 @@ void mesh_plink_block(struct sta_info *sta) } -void mesh_rx_plink_frame (struct ieee80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt, +void mesh_rx_plink_frame (struct mac80211_sub_if_data *sdata,struct ieee80211_mgmt *mgmt,size_t len,struct ieee80211_rx_status *rx_status) {struct mac80211_local *local = sdata->local;
net/mac80211/mlme.c +62 -62
453 lines not on this page · raw message
net/mac80211/offchannel.c +6 -6
@@ -23,7 +23,7 @@* because we *may* be doing work on-operating channel, and want our * hardware unconditionally awake, but still let the AP send us normal frames. */ -static void ieee80211_offchannel_ps_enable (struct ieee80211_sub_if_data *sdata, +static void ieee80211_offchannel_ps_enable (struct mac80211_sub_if_data *sdata,bool tell_ap) {struct mac80211_local *local = sdata->local;
@@ -61,7 +61,7 @@ static void ieee80211_offchannel_ps_enable(struct ieee80211_sub_if_data *sdata, }/* inform AP that we are awake again, unless power save is enabled */ -static void ieee80211_offchannel_ps_disable (struct ieee80211_sub_if_data *sdata) +static void ieee80211_offchannel_ps_disable (struct mac80211_sub_if_data *sdata) {struct mac80211_local *local = sdata->local;
@@ -105,7 +105,7 @@ static void ieee80211_offchannel_ps_disable(struct ieee80211_sub_if_data *sdata)void ieee80211_offchannel_stop_vifs (struct mac80211_local *local,bool offchannel_ps_enable) { -struct ieee80211_sub_if_data *sdata; +struct mac80211_sub_if_data *sdata;/* * notify the AP about us leaving the channel and stop all
Lines of this file are not shown. View the raw message.
net/mac80211/rx.c +21 -21
42 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
RFC PATCH 25/27 mac80211: use mac80211 prefix with rx and tx msg flags
In reply to Kalle Valo--- net/mac80211/mac80211_i.h | 4 ++-- net/mac80211/main.c | 4 ++-- net/mac80211/rx.c | 2 +- net/mac80211/status.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
net/mac80211/mac80211_i.h +2 -2
@@ -628,8 +628,8 @@ enum sdata_queue_type { };enum { -IEEE80211_RX_MSG =1 , -IEEE80211_TX_STATUS_MSG =2 , +MAC80211_RX_MSG =1 , +MAC80211_TX_STATUS_MSG =2 , };enum queue_stop_reason {
net/mac80211/main.c +2 -2
@@ -330,13 +330,13 @@ static void ieee80211_tasklet_handler(unsigned long data)while ((skb =skb_dequeue (&local->skb_queue)) || (skb =skb_dequeue (&local->skb_queue_unreliable))) {switch (skb->pkt_type) { -case IEEE80211_RX_MSG : +case MAC80211_RX_MSG :/* Clear skb->pkt_type in order to not confuse kernel * netstack. */ skb->pkt_type =0 ;ieee80211_rx (local_to_hw (local), skb);break ; -case IEEE80211_TX_STATUS_MSG : +case MAC80211_TX_STATUS_MSG : skb->pkt_type =0 ;ieee80211_tx_status (local_to_hw (local), skb);break ;
net/mac80211/rx.c +1 -1
@@ -2955,7 +2955,7 @@ void ieee80211_rx_irqsafe(struct ieee80211_hw *hw, struct sk_buff *skb)BUILD_BUG_ON (sizeof (struct ieee80211_rx_status ) >sizeof (skb->cb)); - skb->pkt_type =IEEE80211_RX_MSG ; + skb->pkt_type =MAC80211_RX_MSG ;skb_queue_tail (&local->skb_queue, skb);tasklet_schedule (&local->tasklet); }
net/mac80211/status.c +1 -1
@@ -23,7 +23,7 @@ void ieee80211_tx_status_irqsafe(struct ieee80211_hw *hw,struct ieee80211_tx_info *info =IEEE80211_SKB_CB (skb);int tmp; - skb->pkt_type =IEEE80211_TX_STATUS_MSG ; + skb->pkt_type =MAC80211_TX_STATUS_MSG ;skb_queue_tail (info->flags &IEEE80211_TX_CTL_REQ_TX_STATUS ? &local->skb_queue : &local->skb_queue_unreliable, skb); tmp = skb_queue_len(&local->skb_queue) +
RFC PATCH 26/27 mac80211: change queue stop reasons to use mac80211 prefix
In reply to Kalle Valo--- net/mac80211/agg-tx.c | 4 ++-- net/mac80211/mac80211_i.h | 12 ++++++------ net/mac80211/main.c | 2 +- net/mac80211/mlme.c | 12 ++++++------ net/mac80211/pm.c | 2 +- net/mac80211/tx.c | 2 +- net/mac80211/util.c | 18 +++++++++--------- 7 files changed, 26 insertions(+), 26 deletions(-)
net/mac80211/agg-tx.c +2 -2
@@ -276,7 +276,7 @@ ieee80211_stop_queue_agg(struct mac80211_local *local, int tid)if (atomic_inc_return (&local->agg_queue_stop[queue]) ==1 )ieee80211_stop_queue_by_reason ( &local->hw, queue, -IEEE80211_QUEUE_STOP_REASON_AGGREGATION ); +MAC80211_QUEUE_STOP_REASON_AGGREGATION );__acquire (agg_queue); }
@@ -288,7 +288,7 @@ ieee80211_wake_queue_agg(struct mac80211_local *local, int tid)if (atomic_dec_return (&local->agg_queue_stop[queue]) ==0 )ieee80211_wake_queue_by_reason ( &local->hw, queue, -IEEE80211_QUEUE_STOP_REASON_AGGREGATION ); +MAC80211_QUEUE_STOP_REASON_AGGREGATION );__release (agg_queue); }
net/mac80211/mac80211_i.h +6 -6
@@ -633,12 +633,12 @@ enum { };enum queue_stop_reason { -IEEE80211_QUEUE_STOP_REASON_DRIVER , -IEEE80211_QUEUE_STOP_REASON_PS , -IEEE80211_QUEUE_STOP_REASON_CSA , -IEEE80211_QUEUE_STOP_REASON_AGGREGATION , -IEEE80211_QUEUE_STOP_REASON_SUSPEND , -IEEE80211_QUEUE_STOP_REASON_SKB_ADD , +MAC80211_QUEUE_STOP_REASON_DRIVER , +MAC80211_QUEUE_STOP_REASON_PS , +MAC80211_QUEUE_STOP_REASON_CSA , +MAC80211_QUEUE_STOP_REASON_AGGREGATION , +MAC80211_QUEUE_STOP_REASON_SUSPEND , +MAC80211_QUEUE_STOP_REASON_SKB_ADD , };#ifdef CONFIG_MAC80211_LEDS
net/mac80211/main.c +1 -1
@@ -380,7 +380,7 @@ void ieee80211_restart_hw(struct ieee80211_hw *hw)/* use this reason, ieee80211_reconfig will unblock it */ ieee80211_stop_queues_by_reason (hw, -IEEE80211_QUEUE_STOP_REASON_SUSPEND ); +MAC80211_QUEUE_STOP_REASON_SUSPEND );schedule_work (&local->restart_work); }
net/mac80211/mlme.c +6 -6
@@ -233,7 +233,7 @@ static u32 ieee80211_enable_ht(struct mac80211_sub_if_data *sdata, }ieee80211_stop_queues_by_reason (&sdata->local->hw, -IEEE80211_QUEUE_STOP_REASON_CSA ); +MAC80211_QUEUE_STOP_REASON_CSA );/* channel_type change automatically detected */ ieee80211_hw_config (local,0 );
@@ -249,7 +249,7 @@ static u32 ieee80211_enable_ht(struct mac80211_sub_if_data *sdata, }ieee80211_wake_queues_by_reason (&sdata->local->hw, -IEEE80211_QUEUE_STOP_REASON_CSA ); +MAC80211_QUEUE_STOP_REASON_CSA ); ht_opmode =le16_to_cpu (hti->operation_mode);
@@ -406,7 +406,7 @@ static void ieee80211_chswitch_work(struct work_struct *work) ifmgd->associated->channel = sdata->local->oper_channel;ieee80211_wake_queues_by_reason (&sdata->local->hw, -IEEE80211_QUEUE_STOP_REASON_CSA ); +MAC80211_QUEUE_STOP_REASON_CSA ); out: ifmgd->flags &= ~MAC80211_STA_CSA_RECEIVED ;mutex_unlock (&ifmgd->mtx);
@@ -489,7 +489,7 @@ void ieee80211_sta_process_chanswitch(struct mac80211_sub_if_data *sdata,if (sw_elem->mode) { ch_switch.block_tx = true;ieee80211_stop_queues_by_reason (&sdata->local->hw, -IEEE80211_QUEUE_STOP_REASON_CSA ); +MAC80211_QUEUE_STOP_REASON_CSA ); } ch_switch.channel = new_ch; ch_switch.count = sw_elem->count;
@@ -504,7 +504,7 @@ void ieee80211_sta_process_chanswitch(struct mac80211_sub_if_data *sdata, }else {if (sw_elem->mode)ieee80211_stop_queues_by_reason (&sdata->local->hw, -IEEE80211_QUEUE_STOP_REASON_CSA ); +MAC80211_QUEUE_STOP_REASON_CSA ); ifmgd->flags |=MAC80211_STA_CSA_RECEIVED ; mod_timer(&ifmgd->chswitch_timer, jiffies +
@@ -746,7 +746,7 @@ void ieee80211_dynamic_ps_disable_work(struct work_struct *work) }ieee80211_wake_queues_by_reason (&local->hw, -IEEE80211_QUEUE_STOP_REASON_PS ); +MAC80211_QUEUE_STOP_REASON_PS ); }void ieee80211_dynamic_ps_enable_work (struct work_struct *work)
net/mac80211/pm.c +1 -1
@@ -24,7 +24,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) }ieee80211_stop_queues_by_reason (hw, -IEEE80211_QUEUE_STOP_REASON_SUSPEND ); +MAC80211_QUEUE_STOP_REASON_SUSPEND );/* flush out all packets */ synchronize_net ();
net/mac80211/tx.c +1 -1
@@ -231,7 +231,7 @@ ieee80211_tx_h_dynamic_ps(struct mac80211_tx_data *tx)if (local->hw.conf.flags &IEEE80211_CONF_PS ) {ieee80211_stop_queues_by_reason (&local->hw, -IEEE80211_QUEUE_STOP_REASON_PS ); +MAC80211_QUEUE_STOP_REASON_PS ); ifmgd->flags &= ~MAC80211_STA_NULLFUNC_ACKED ;ieee80211_queue_work (&local->hw, &local->dynamic_ps_disable_work);
net/mac80211/util.c +9 -9
@@ -307,7 +307,7 @@ void ieee80211_wake_queue_by_reason(struct ieee80211_hw *hw, int queue,void ieee80211_wake_queue (struct ieee80211_hw *hw,int queue) {ieee80211_wake_queue_by_reason (hw, queue, -IEEE80211_QUEUE_STOP_REASON_DRIVER ); +MAC80211_QUEUE_STOP_REASON_DRIVER ); }EXPORT_SYMBOL (ieee80211_wake_queue);
@@ -344,7 +344,7 @@ void ieee80211_stop_queue_by_reason(struct ieee80211_hw *hw, int queue,void ieee80211_stop_queue (struct ieee80211_hw *hw,int queue) {ieee80211_stop_queue_by_reason (hw, queue, -IEEE80211_QUEUE_STOP_REASON_DRIVER ); +MAC80211_QUEUE_STOP_REASON_DRIVER ); }EXPORT_SYMBOL (ieee80211_stop_queue);
@@ -362,9 +362,9 @@ void ieee80211_add_pending_skb(struct mac80211_local *local, }spin_lock_irqsave (&local->queue_stop_reason_lock, flags); -__ieee80211_stop_queue (hw, queue,IEEE80211_QUEUE_STOP_REASON_SKB_ADD ); +__ieee80211_stop_queue (hw, queue,MAC80211_QUEUE_STOP_REASON_SKB_ADD );__skb_queue_tail (&local->pending[queue], skb); -__ieee80211_wake_queue (hw, queue,IEEE80211_QUEUE_STOP_REASON_SKB_ADD ); +__ieee80211_wake_queue (hw, queue,MAC80211_QUEUE_STOP_REASON_SKB_ADD );spin_unlock_irqrestore (&local->queue_stop_reason_lock, flags); }
@@ -380,7 +380,7 @@ int ieee80211_add_pending_skbs_fn(struct mac80211_local *local,spin_lock_irqsave (&local->queue_stop_reason_lock, flags);for (i =0 ; i < hw->queues; i++)__ieee80211_stop_queue (hw, i, -IEEE80211_QUEUE_STOP_REASON_SKB_ADD ); +MAC80211_QUEUE_STOP_REASON_SKB_ADD );while ((skb =skb_dequeue (skbs))) {struct ieee80211_tx_info *info =IEEE80211_SKB_CB (skb);
@@ -400,7 +400,7 @@ int ieee80211_add_pending_skbs_fn(struct mac80211_local *local,for (i =0 ; i < hw->queues; i++)__ieee80211_wake_queue (hw, i, -IEEE80211_QUEUE_STOP_REASON_SKB_ADD ); +MAC80211_QUEUE_STOP_REASON_SKB_ADD );spin_unlock_irqrestore (&local->queue_stop_reason_lock, flags);return ret;
@@ -430,7 +430,7 @@ void ieee80211_stop_queues_by_reason(struct ieee80211_hw *hw,void ieee80211_stop_queues (struct ieee80211_hw *hw) {ieee80211_stop_queues_by_reason (hw, -IEEE80211_QUEUE_STOP_REASON_DRIVER ); +MAC80211_QUEUE_STOP_REASON_DRIVER ); }EXPORT_SYMBOL (ieee80211_stop_queues);
@@ -467,7 +467,7 @@ void ieee80211_wake_queues_by_reason(struct ieee80211_hw *hw,void ieee80211_wake_queues (struct ieee80211_hw *hw) { -ieee80211_wake_queues_by_reason (hw,IEEE80211_QUEUE_STOP_REASON_DRIVER ); +ieee80211_wake_queues_by_reason (hw,MAC80211_QUEUE_STOP_REASON_DRIVER ); }EXPORT_SYMBOL (ieee80211_wake_queues);
@@ -1278,7 +1278,7 @@ int ieee80211_reconfig(struct mac80211_local *local) wake_up:ieee80211_wake_queues_by_reason (hw, -IEEE80211_QUEUE_STOP_REASON_SUSPEND ); +MAC80211_QUEUE_STOP_REASON_SUSPEND );/* * If this is for hw restart things are still running.
RFC PATCH 27/27 mac80211: use mac80211_hw
In reply to Kalle Valo--- net/mac80211/led.c | 10 ++++---- net/mac80211/mac80211_i.h | 22 +++++++++-------- net/mac80211/main.c | 14 +++++------ net/mac80211/mlme.c | 6 ++--- net/mac80211/offchannel.c | 4 ++- net/mac80211/pm.c | 2 +- net/mac80211/rc80211_minstrel.c | 4 ++- net/mac80211/rc80211_minstrel.h | 2 +- net/mac80211/rc80211_minstrel_ht.c | 4 ++- net/mac80211/rc80211_pid_algo.c | 2 +- net/mac80211/rx.c | 18 +++++++------- net/mac80211/scan.c | 8 +++--- net/mac80211/sta_info.c | 4 ++- net/mac80211/status.c | 4 ++- net/mac80211/tx.c | 14 +++++------ net/mac80211/util.c | 46 ++++++++++++++++++------------------ 16 files changed, 82 insertions(+), 82 deletions(-)
net/mac80211/led.c +5 -5
@@ -137,7 +137,7 @@ void ieee80211_led_exit(struct mac80211_local *local) } } -char *__ieee80211_get_radio_led_name (struct ieee80211_hw *hw) +char *__ieee80211_get_radio_led_name (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -145,7 +145,7 @@ char *__ieee80211_get_radio_led_name(struct ieee80211_hw *hw) }EXPORT_SYMBOL (__ieee80211_get_radio_led_name); -char *__ieee80211_get_assoc_led_name (struct ieee80211_hw *hw) +char *__ieee80211_get_assoc_led_name (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -153,7 +153,7 @@ char *__ieee80211_get_assoc_led_name(struct ieee80211_hw *hw) }EXPORT_SYMBOL (__ieee80211_get_assoc_led_name); -char *__ieee80211_get_tx_led_name (struct ieee80211_hw *hw) +char *__ieee80211_get_tx_led_name (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -161,7 +161,7 @@ char *__ieee80211_get_tx_led_name(struct ieee80211_hw *hw) }EXPORT_SYMBOL (__ieee80211_get_tx_led_name); -char *__ieee80211_get_rx_led_name (struct ieee80211_hw *hw) +char *__ieee80211_get_rx_led_name (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -215,7 +215,7 @@ static void tpt_trig_timer(unsigned long data)read_unlock (&tpt_trig->trig.leddev_list_lock); } -char *__ieee80211_create_tpt_led_trigger (struct ieee80211_hw *hw, +char *__ieee80211_create_tpt_led_trigger (struct mac80211_hw *hw,unsigned int flags,const struct ieee80211_tpt_blink *blink_table,unsigned int blink_table_len)
net/mac80211/mac80211_i.h +11 -11
@@ -699,7 +699,7 @@ struct mac80211_local {/* embed the driver visible part. * don't cast (use the static inlines below), but we keep * it first anyway so they become a no-op */ -struct ieee80211_hw hw; +struct mac80211_hw hw;const struct ieee80211_ops *ops;
@@ -1058,12 +1058,12 @@ struct ieee802_11_elems { };static inline struct mac80211_local *hw_to_local ( -struct ieee80211_hw *hw) +struct mac80211_hw *hw) { return container_of(hw, struct mac80211_local, hw); } -static inline struct ieee80211_hw *local_to_hw ( +static inline struct mac80211_hw *local_to_hw (struct mac80211_local *local) {return &local->hw;
@@ -1269,10 +1269,10 @@ int ieee80211_reconfig(struct mac80211_local *local);void ieee80211_stop_device (struct mac80211_local *local);#ifdef CONFIG_PM -int __ieee80211_suspend (struct ieee80211_hw *hw, +int __ieee80211_suspend (struct mac80211_hw *hw,struct cfg80211_wowlan *wowlan); -static inline int __ieee80211_resume (struct ieee80211_hw *hw) +static inline int __ieee80211_resume (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -1283,13 +1283,13 @@ static inline int __ieee80211_resume(struct ieee80211_hw *hw) return ieee80211_reconfig(hw_to_local(hw)); }#else -static inline int __ieee80211_suspend (struct ieee80211_hw *hw, +static inline int __ieee80211_suspend (struct mac80211_hw *hw,struct cfg80211_wowlan *wowlan) {return 0 ; } -static inline int __ieee80211_resume (struct ieee80211_hw *hw) +static inline int __ieee80211_resume (struct mac80211_hw *hw) {return 0 ; }
@@ -1326,13 +1326,13 @@ void ieee80211_sta_tx_notify(struct mac80211_sub_if_data *sdata, struct ieee80211_hdr *hdr, bool ack);void ieee80211_beacon_connection_loss_work (struct work_struct *work); -void ieee80211_wake_queues_by_reason (struct ieee80211_hw *hw, +void ieee80211_wake_queues_by_reason (struct mac80211_hw *hw,enum queue_stop_reason reason); -void ieee80211_stop_queues_by_reason (struct ieee80211_hw *hw, +void ieee80211_stop_queues_by_reason (struct mac80211_hw *hw,enum queue_stop_reason reason); -void ieee80211_wake_queue_by_reason (struct ieee80211_hw *hw,int queue, +void ieee80211_wake_queue_by_reason (struct mac80211_hw *hw,int queue,enum queue_stop_reason reason); -void ieee80211_stop_queue_by_reason (struct ieee80211_hw *hw,int queue, +void ieee80211_stop_queue_by_reason (struct mac80211_hw *hw,int queue,enum queue_stop_reason reason);void ieee80211_add_pending_skb (struct mac80211_local *local,struct sk_buff *skb);
net/mac80211/main.c +7 -7
@@ -369,7 +369,7 @@ static void ieee80211_restart_work(struct work_struct *work)rtnl_unlock (); } -void ieee80211_restart_hw (struct ieee80211_hw *hw) +void ieee80211_restart_hw (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -474,7 +474,7 @@ static int ieee80211_napi_poll(struct napi_struct *napi, int budget)return local->ops->napi_poll (&local->hw, budget); } -void ieee80211_napi_schedule (struct ieee80211_hw *hw) +void ieee80211_napi_schedule (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -482,7 +482,7 @@ void ieee80211_napi_schedule(struct ieee80211_hw *hw) }EXPORT_SYMBOL (ieee80211_napi_schedule); -void ieee80211_napi_complete (struct ieee80211_hw *hw) +void ieee80211_napi_complete (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -546,7 +546,7 @@ ieee80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = { }, }; -struct ieee80211_hw *ieee80211_alloc_hw (size_t priv_data_len, +struct mac80211_hw *ieee80211_alloc_hw (size_t priv_data_len,const struct ieee80211_ops *ops) {struct mac80211_local *local;
@@ -682,7 +682,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, }EXPORT_SYMBOL (ieee80211_alloc_hw); -int ieee80211_register_hw (struct ieee80211_hw *hw) +int ieee80211_register_hw (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);int result, i;
@@ -978,7 +978,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) }EXPORT_SYMBOL (ieee80211_register_hw); -void ieee80211_unregister_hw (struct ieee80211_hw *hw) +void ieee80211_unregister_hw (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -1030,7 +1030,7 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw) }EXPORT_SYMBOL (ieee80211_unregister_hw); -void ieee80211_free_hw (struct ieee80211_hw *hw) +void ieee80211_free_hw (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
net/mac80211/mlme.c +3 -3
@@ -1277,7 +1277,7 @@ static void ieee80211_mgd_probe_ap(struct mac80211_sub_if_data *sdata,mutex_unlock (&ifmgd->mtx); } -struct sk_buff *ieee80211_ap_probereq_get (struct ieee80211_hw *hw, +struct sk_buff *ieee80211_ap_probereq_get (struct mac80211_hw *hw,struct ieee80211_vif *vif) {struct mac80211_sub_if_data *sdata =vif_to_sdata (vif);
@@ -1349,7 +1349,7 @@ void ieee80211_beacon_connection_loss_work(struct work_struct *work)void ieee80211_beacon_loss (struct ieee80211_vif *vif) {struct mac80211_sub_if_data *sdata =vif_to_sdata (vif); -struct ieee80211_hw *hw = &sdata->local->hw; +struct mac80211_hw *hw = &sdata->local->hw;trace_api_beacon_loss (sdata);
@@ -1361,7 +1361,7 @@ EXPORT_SYMBOL(ieee80211_beacon_loss);void ieee80211_connection_loss (struct ieee80211_vif *vif) {struct mac80211_sub_if_data *sdata =vif_to_sdata (vif); -struct ieee80211_hw *hw = &sdata->local->hw; +struct mac80211_hw *hw = &sdata->local->hw;trace_api_connection_loss (sdata);
net/mac80211/offchannel.c +2 -2
@@ -229,7 +229,7 @@ static void ieee80211_hw_roc_start(struct work_struct *work)mutex_unlock (&local->mtx); } -void ieee80211_ready_on_channel (struct ieee80211_hw *hw) +void ieee80211_ready_on_channel (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -266,7 +266,7 @@ static void ieee80211_hw_roc_done(struct work_struct *work)mutex_unlock (&local->mtx); } -void ieee80211_remain_on_channel_expired (struct ieee80211_hw *hw) +void ieee80211_remain_on_channel_expired (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
net/mac80211/pm.c +1 -1
@@ -6,7 +6,7 @@#include "driver-ops.h" #include "led.h" -int __ieee80211_suspend (struct ieee80211_hw *hw,struct cfg80211_wowlan *wowlan) +int __ieee80211_suspend (struct mac80211_hw *hw,struct cfg80211_wowlan *wowlan) {struct mac80211_local *local =hw_to_local (hw);struct mac80211_sub_if_data *sdata;
net/mac80211/rc80211_minstrel.c +2 -2
@@ -451,7 +451,7 @@ minstrel_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp)struct ieee80211_supported_band *sband;struct minstrel_sta_info *mi;struct minstrel_priv *mp = priv; -struct ieee80211_hw *hw = mp->hw; +struct mac80211_hw *hw = mp->hw;int max_rates =0 ;int i;
@@ -494,7 +494,7 @@ minstrel_free_sta(void *priv, struct ieee80211_sta *sta, void *priv_sta) }static void * -minstrel_alloc (struct ieee80211_hw *hw,struct dentry *debugfsdir) +minstrel_alloc (struct mac80211_hw *hw,struct dentry *debugfsdir) {struct minstrel_priv *mp;
net/mac80211/rc80211_minstrel.h +1 -1
@@ -68,7 +68,7 @@ struct minstrel_sta_info { };struct minstrel_priv { -struct ieee80211_hw *hw; +struct mac80211_hw *hw;bool has_mrr;unsigned int cw_min;unsigned int cw_max;
net/mac80211/rc80211_minstrel_ht.c +2 -2
@@ -777,7 +777,7 @@ minstrel_ht_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp)struct ieee80211_supported_band *sband;struct minstrel_ht_sta_priv *msp;struct minstrel_priv *mp = priv; -struct ieee80211_hw *hw = mp->hw; +struct mac80211_hw *hw = mp->hw;int max_rates =0 ;int i;
@@ -819,7 +819,7 @@ minstrel_ht_free_sta(void *priv, struct ieee80211_sta *sta, void *priv_sta) }static void * -minstrel_ht_alloc (struct ieee80211_hw *hw,struct dentry *debugfsdir) +minstrel_ht_alloc (struct mac80211_hw *hw,struct dentry *debugfsdir) {return mac80211_minstrel.alloc (hw, debugfsdir); }
net/mac80211/rc80211_pid_algo.c +1 -1
@@ -336,7 +336,7 @@ rate_control_pid_rate_init(void *priv, struct ieee80211_supported_band *sband, spinfo->txrate_idx =rate_lowest_index (sband, sta); } -static void *rate_control_pid_alloc (struct ieee80211_hw *hw, +static void *rate_control_pid_alloc (struct mac80211_hw *hw,struct dentry *debugfsdir) {struct rc_pid_info *pinfo;
net/mac80211/rx.c +9 -9
@@ -546,7 +546,7 @@ static inline u16 seq_sub(u16 sq1, u16 sq2) } -static void ieee80211_release_reorder_frame (struct ieee80211_hw *hw, +static void ieee80211_release_reorder_frame (struct mac80211_hw *hw,struct tid_ampdu_rx *tid_agg_rx,int index) {
@@ -570,7 +570,7 @@ no_frame: tid_agg_rx->head_seq_num =seq_inc (tid_agg_rx->head_seq_num); } -static void ieee80211_release_reorder_frames (struct ieee80211_hw *hw, +static void ieee80211_release_reorder_frames (struct mac80211_hw *hw,struct tid_ampdu_rx *tid_agg_rx,u16 head_seq_num) {
@@ -596,7 +596,7 @@ static void ieee80211_release_reorder_frames(struct ieee80211_hw *hw,*/ #define HT_RX_REORDER_BUF_TIMEOUT (HZ / 10) -static void ieee80211_sta_reorder_release (struct ieee80211_hw *hw, +static void ieee80211_sta_reorder_release (struct mac80211_hw *hw,struct tid_ampdu_rx *tid_agg_rx) {int index, j;
@@ -669,7 +669,7 @@ static void ieee80211_sta_reorder_release(struct ieee80211_hw *hw,* rcu_read_lock protection. It returns false if the frame * can be processed immediately, true if it was consumed. */ -static bool ieee80211_sta_manage_reorder_buf (struct ieee80211_hw *hw, +static bool ieee80211_sta_manage_reorder_buf (struct mac80211_hw *hw,struct tid_ampdu_rx *tid_agg_rx,struct sk_buff *skb) {
@@ -743,7 +743,7 @@ static void ieee80211_rx_reorder_ampdu(struct mac80211_rx_data *rx) {struct sk_buff *skb = rx->skb;struct mac80211_local *local = rx->local; -struct ieee80211_hw *hw = &local->hw; +struct mac80211_hw *hw = &local->hw;struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;struct sta_info *sta = rx->sta;struct tid_ampdu_rx *tid_agg_rx;
@@ -1981,7 +1981,7 @@ static ieee80211_rx_result debug_noinline ieee80211_rx_h_ctrl(struct mac80211_rx_data *rx) {struct mac80211_local *local = rx->local; -struct ieee80211_hw *hw = &local->hw; +struct mac80211_hw *hw = &local->hw;struct sk_buff *skb = rx->skb;struct ieee80211_bar *bar = (struct ieee80211_bar *)skb->data;struct tid_ampdu_rx *tid_agg_rx;
@@ -2737,7 +2737,7 @@ static bool ieee80211_prepare_and_rx_handle(struct mac80211_rx_data *rx,* This is the actual Rx frames handler. as it blongs to Rx path it must * be called with rcu_read_lock protection. */ -static void __ieee80211_rx_handle_packet (struct ieee80211_hw *hw, +static void __ieee80211_rx_handle_packet (struct mac80211_hw *hw,struct sk_buff *skb) {struct ieee80211_rx_status *status =IEEE80211_SKB_RXCB (skb);
@@ -2846,7 +2846,7 @@ static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw,* This is the receive path handler. It is called by a low level driver when an * 802.11 MPDU is received from the hardware. */ -void ieee80211_rx (struct ieee80211_hw *hw,struct sk_buff *skb) +void ieee80211_rx (struct mac80211_hw *hw,struct sk_buff *skb) {struct mac80211_local *local =hw_to_local (hw);struct ieee80211_rate *rate =NULL ;
@@ -2949,7 +2949,7 @@ EXPORT_SYMBOL(ieee80211_rx);/* This is a version of the rx handler that can be called from hard irq * context. Post the skb on the queue and schedule the tasklet */ -void ieee80211_rx_irqsafe (struct ieee80211_hw *hw,struct sk_buff *skb) +void ieee80211_rx_irqsafe (struct mac80211_hw *hw,struct sk_buff *skb) {struct mac80211_local *local =hw_to_local (hw);
net/mac80211/scan.c +4 -4
@@ -258,7 +258,7 @@ static bool ieee80211_prep_hw_scan(struct mac80211_local *local)return true; } -static void __ieee80211_scan_completed (struct ieee80211_hw *hw,bool aborted, +static void __ieee80211_scan_completed (struct mac80211_hw *hw,bool aborted,bool was_hw_scan) {struct mac80211_local *local =hw_to_local (hw);
@@ -325,7 +325,7 @@ static void __ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted,ieee80211_queue_work (&local->hw, &local->work_work); } -void ieee80211_scan_completed (struct ieee80211_hw *hw,bool aborted) +void ieee80211_scan_completed (struct mac80211_hw *hw,bool aborted) {struct mac80211_local *local =hw_to_local (hw);
@@ -931,7 +931,7 @@ out:return ret; } -void ieee80211_sched_scan_results (struct ieee80211_hw *hw) +void ieee80211_sched_scan_results (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
@@ -965,7 +965,7 @@ void ieee80211_sched_scan_stopped_work(struct work_struct *work)cfg80211_sched_scan_stopped (local->hw.wiphy); } -void ieee80211_sched_scan_stopped (struct ieee80211_hw *hw) +void ieee80211_sched_scan_stopped (struct mac80211_hw *hw) {struct mac80211_local *local =hw_to_local (hw);
net/mac80211/sta_info.c +2 -2
@@ -844,7 +844,7 @@ void ieee80211_sta_expire(struct mac80211_sub_if_data *sdata,mutex_unlock (&local->sta_mtx); } -struct ieee80211_sta *ieee80211_find_sta_by_ifaddr (struct ieee80211_hw *hw, +struct ieee80211_sta *ieee80211_find_sta_by_ifaddr (struct mac80211_hw *hw,const u8 *addr,const u8 *localaddr) {
@@ -980,7 +980,7 @@ void ieee80211_sta_ps_deliver_poll_response(struct sta_info *sta) } } -void ieee80211_sta_block_awake (struct ieee80211_hw *hw, +void ieee80211_sta_block_awake (struct mac80211_hw *hw,struct ieee80211_sta *pubsta,bool block) { struct sta_info *sta = container_of(pubsta, struct sta_info, sta);
net/mac80211/status.c +2 -2
@@ -16,7 +16,7 @@#include "led.h" -void ieee80211_tx_status_irqsafe (struct ieee80211_hw *hw, +void ieee80211_tx_status_irqsafe (struct mac80211_hw *hw,struct sk_buff *skb) {struct mac80211_local *local =hw_to_local (hw);
@@ -170,7 +170,7 @@ static void ieee80211_frame_acked(struct sta_info *sta, struct sk_buff *skb)*/ #define STA_LOST_PKT_THRESHOLD 50 -void ieee80211_tx_status (struct ieee80211_hw *hw,struct sk_buff *skb) +void ieee80211_tx_status (struct mac80211_hw *hw,struct sk_buff *skb) {struct sk_buff *skb2;struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/tx.c +7 -7
@@ -2157,7 +2157,7 @@ static void ieee80211_beacon_add_tim(struct mac80211_if_ap *bss, } } -struct sk_buff *ieee80211_beacon_get_tim (struct ieee80211_hw *hw, +struct sk_buff *ieee80211_beacon_get_tim (struct mac80211_hw *hw,struct ieee80211_vif *vif,u16 *tim_offset,u16 *tim_length) {
@@ -2314,7 +2314,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, }EXPORT_SYMBOL (ieee80211_beacon_get_tim); -struct sk_buff *ieee80211_pspoll_get (struct ieee80211_hw *hw, +struct sk_buff *ieee80211_pspoll_get (struct mac80211_hw *hw,struct ieee80211_vif *vif) {struct mac80211_sub_if_data *sdata;
@@ -2354,7 +2354,7 @@ struct sk_buff *ieee80211_pspoll_get(struct ieee80211_hw *hw, }EXPORT_SYMBOL (ieee80211_pspoll_get); -struct sk_buff *ieee80211_nullfunc_get (struct ieee80211_hw *hw, +struct sk_buff *ieee80211_nullfunc_get (struct mac80211_hw *hw,struct ieee80211_vif *vif) {struct ieee80211_hdr_3addr *nullfunc;
@@ -2392,7 +2392,7 @@ struct sk_buff *ieee80211_nullfunc_get(struct ieee80211_hw *hw, }EXPORT_SYMBOL (ieee80211_nullfunc_get); -struct sk_buff *ieee80211_probereq_get (struct ieee80211_hw *hw, +struct sk_buff *ieee80211_probereq_get (struct mac80211_hw *hw,struct ieee80211_vif *vif,const u8 *ssid,size_t ssid_len,const u8 *ie,size_t ie_len)
@@ -2442,7 +2442,7 @@ struct sk_buff *ieee80211_probereq_get(struct ieee80211_hw *hw, }EXPORT_SYMBOL (ieee80211_probereq_get); -void ieee80211_rts_get (struct ieee80211_hw *hw,struct ieee80211_vif *vif, +void ieee80211_rts_get (struct mac80211_hw *hw,struct ieee80211_vif *vif,const void *frame,size_t frame_len,const struct ieee80211_tx_info *frame_txctl,struct ieee80211_rts *rts)
@@ -2458,7 +2458,7 @@ void ieee80211_rts_get(struct ieee80211_hw *hw, struct ieee80211_vif *vif, }EXPORT_SYMBOL (ieee80211_rts_get); -void ieee80211_ctstoself_get (struct ieee80211_hw *hw,struct ieee80211_vif *vif, +void ieee80211_ctstoself_get (struct mac80211_hw *hw,struct ieee80211_vif *vif,const void *frame,size_t frame_len,const struct ieee80211_tx_info *frame_txctl,struct ieee80211_cts *cts)
@@ -2474,7 +2474,7 @@ void ieee80211_ctstoself_get(struct ieee80211_hw *hw, struct ieee80211_vif *vif,EXPORT_SYMBOL (ieee80211_ctstoself_get);struct sk_buff * -ieee80211_get_buffered_bc (struct ieee80211_hw *hw, +ieee80211_get_buffered_bc (struct mac80211_hw *hw,struct ieee80211_vif *vif) {struct mac80211_local *local =hw_to_local (hw);
net/mac80211/util.c +23 -23
184 lines not on this page · raw message
Re: [RFC PATCH 04/27] rtlwifi: include mac80211.h from core.h
In reply to Kalle ValoQuoted 4 lines · Kalle Valo
core.hreferencesieee80211_opsbut doesn't includemac80211.h, which issues a warning oncemac80211-compat.his taken into use.Signed-off-by Kalle Valo<[email protected]>
Quoted 23 lines
--- drivers/net/wireless/rtlwifi/core.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)drivers/net/wireless/rtlwifi/core.h +2
-1@@ -30,6 +30,8 @@#ifndef __RTL_CORE_H__#define __RTL_CORE_H__ +#include <net/mac80211.h> +#define RTL_SUPPORTED_FILTERS \ (FIF_PROMISC_IN_BSS | \ FIF_ALLMULTI | FIF_CONTROL | \ --To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [RFC PATCH 03/27] zd1211rw: include mac80211.h from zd_chip.h
In reply to Kalle ValoQuoted 7 lines
Date: Sunday, May 29, 2011, 11:04 PM
zd_chip.hcontains one function with
a pointer toieee80211_hwbut doesn't includemac80211.h. As a temporary solution includemac80211.hto avoid
a warning.
I'm still getting a warning with this patch. I think this happened when Jussi fixed some stuff awhile back.
In function ‘zd_mac_alloc_hw’:drivers/net/wireless/zd1211rw/zd_mac.c:1340:7: warning: statement with no effect
Walter
Re: [RFC PATCH 03/27] zd1211rw: include mac80211.h from zd_chip.h
Quoting Walter Goldens <[email protected]>:
Quoted 8 lines
Quoted 7 lines
Date: Sunday, May 29, 2011, 11:04 PM
zd_chip.hcontains one function with
a pointer toieee80211_hwbut doesn't includemac80211.h. As a temporary solution includemac80211.hto avoid
a warning.
Quoted 4 lines
I'm still getting a warning with this patch. I think this happened when Jussi fixed some stuff awhile back.
In function ‘zd_mac_alloc_hw’:
drivers/net/wireless/zd1211rw/zd_mac.c:1340:7: warning: statement with no effect
Hm.. I'm not getting this with wireless-testing.
Quoted 4 lines
Walter
Re: [RFC PATCH 03/27] zd1211rw: include mac80211.h from zd_chip.h
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Date: Sunday, May 29, 2011, 11:04 PM
zd_chip.hcontains one function with a pointer toieee80211_hwbut doesn't includemac80211.h. As a temporary solutioninclude
Quoted 3 lines
Quoted 2 lines
mac80211.hto avoid
a warning.
Quoted 9 lines
Quoted 1 line
I'm still getting a warning with this patch. I think
this happened when Jussi fixed some stuff awhile back.
Quoted 3 lines
In function ‘zd_mac_alloc_hw’:
drivers/net/wireless/zd1211rw/zd_mac.c:1340:7:warning: statement with no effect
Hm.. I'm not getting this with wireless-testing.
Ubuntu's default kernels 2.6.35 and .38 exhibit this warning when compiling compat-wireless. If my memory serves me right, the warning began to occur right after you've submitted a patch to rename CR* marcos to ZD_CR*.
Walter
Re: [RFC PATCH 03/27] zd1211rw: include mac80211.h from zd_chip.h
Quoting Walter Goldens <[email protected]>:
Quoted 12 lines
Quoted 12 lines
Quoted 5 lines
Quoted 5 lines
Date: Sunday, May 29, 2011, 11:04 PM
zd_chip.hcontains one function with a pointer toieee80211_hwbut doesn't includemac80211.h. As a temporary solutioninclude
Quoted 4 lines
Quoted 2 lines
mac80211.hto avoid
a warning.I'm still getting a warning with this patch. I think
this happened when Jussi fixed some stuff awhile back.
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
In function ‘zd_mac_alloc_hw’:
drivers/net/wireless/zd1211rw/zd_mac.c:1340:7:warning: statement with no effect
Hm.. I'm not getting this with wireless-testing.
Ubuntu's default kernels 2.6.35 and .38 exhibit this warning when compiling compat-wireless. If my memory serves me right, the warning began to occur right after you've submitted a patch to rename CR* marcos to ZD_CR*.
Compiled compat-wireless-2011-05-30 on Ubuntu 11.04, 64bit: 2.6.38-8-generic & 2.6.38-8-server and 32bit: 2.6.38-8-generic & 2.6.38-8-generic-pae. No warnings at zd1211rw at all. (?)
Quoted 4 lines
Walter
Re: [RFC PATCH 03/27] zd1211rw: include mac80211.h from zd_chip.h
Quoted 25 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Date: Sunday, May 29, 2011, 11:04 PM
zd_chip.hcontains one function with a pointer toieee80211_hwbut doesn't includemac80211.h. As a temporarysolution
Quoted 5 lines
Quoted 5 lines
include
Quoted 4 lines
Quoted 2 lines
mac80211.hto avoid
a warning.I'm still getting a warning with this patch.
I think
Quoted 1 line
Quoted 1 line
this happened when Jussi fixed some stuff awhile
back.
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
In function ‘zd_mac_alloc_hw’:
drivers/net/wireless/zd1211rw/zd_mac.c:1340:7:Quoted 6 lines
Quoted 4 lines
warning: statement with no effect
Hm.. I'm not getting this with wireless-testing.
Ubuntu's default kernels 2.6.35 and .38 exhibit this
Quoted 9 lines
warning when compiling compat-wireless. If my memory serves me right, the warning began to occur right after you've submitted a patch to rename CR* marcos to ZD_CR*.
Compiled compat-wireless-2011-05-30 on Ubuntu 11.04, 64bit:
2.6.38-8-generic & 2.6.38-8-server and 32bit:
2.6.38-8-generic & 2.6.38-8-generic-pae. No warnings at zd1211rw at all. (?)
Apologies for the delay. It appears I may have applied an injection patch to the zd1211rw which resulted in the warning reported above. Unfortunately, the zd1211rw does monitor, but will not inject outright.
Walter