drivers/net/wireless/virtual/mac80211_hwsim_nan.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/virtual/mac80211_hwsim_nan.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/virtual/mac80211_hwsim_nan.h- Extension
.h- Size
- 2854 bytes
- Lines
- 103
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct mac80211_hwsim_nan_dataenum mac80211_hwsim_nan_phaseenum mac80211_hwsim_nan_role
Annotated Snippet
struct mac80211_hwsim_nan_data {
struct ieee80211_vif *device_vif;
u8 bands;
struct hrtimer slot_timer;
struct hrtimer resume_txqs_timer;
bool notify_dw;
struct hrtimer discovery_beacon_timer;
/* Later members are protected by this lock */
spinlock_t state_lock;
u8 master_pref;
u8 random_factor;
u8 random_factor_valid_dwst;
enum mac80211_hwsim_nan_phase phase;
enum mac80211_hwsim_nan_role role;
u8 cluster_id[ETH_ALEN];
struct ieee80211_nan_anchor_master_info current_ami;
struct ieee80211_nan_anchor_master_info last_ami;
/* Wi-Fi Aware version 4.0, section 3.3.6.1 and 3.3.6.2 */
int master_transition_score;
/* Wi-Fi Aware version 4.0, section 3.3.6.3 and 3.3.6.4 */
int sync_transition_score;
bool tsf_adjusted;
bool tsf_discontinuity;
/*
* Local schedule - stores channel definition for each 16TU slot.
* Derived from NMI vif->cfg.nan_schedule. chan == NULL means not
* available in that slot (except DW which is implicit).
*/
struct cfg80211_chan_def local_sched[CFG80211_NAN_SCHED_NUM_TIME_SLOTS];
};
enum hrtimer_restart
mac80211_hwsim_nan_slot_timer(struct hrtimer *timer);
enum hrtimer_restart
mac80211_hwsim_nan_resume_txqs_timer(struct hrtimer *timer);
enum hrtimer_restart
mac80211_hwsim_nan_discovery_beacon_timer(struct hrtimer *timer);
int mac80211_hwsim_nan_start(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct cfg80211_nan_conf *conf);
int mac80211_hwsim_nan_stop(struct ieee80211_hw *hw,
struct ieee80211_vif *vif);
int mac80211_hwsim_nan_change_config(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct cfg80211_nan_conf *conf,
u32 changes);
int mac80211_hwsim_nan_peer_sched_changed(struct ieee80211_hw *hw,
struct ieee80211_sta *sta);
bool mac80211_hwsim_nan_txq_transmitting(struct ieee80211_hw *hw,
struct ieee80211_txq *txq);
void mac80211_hwsim_nan_get_tx_chandef(struct ieee80211_hw *hw,
struct cfg80211_chan_def *chandef);
bool mac80211_hwsim_nan_receive(struct ieee80211_hw *hw,
struct ieee80211_channel *channel,
struct ieee80211_rx_status *rx_status);
void mac80211_hwsim_nan_rx(struct ieee80211_hw *hw,
struct sk_buff *skb);
void mac80211_hwsim_nan_local_sched_changed(struct ieee80211_hw *hw,
struct ieee80211_vif *vif);
#endif /* __MAC80211_HWSIM_NAN_H */
Annotation
- Detected declarations: `struct mac80211_hwsim_nan_data`, `enum mac80211_hwsim_nan_phase`, `enum mac80211_hwsim_nan_role`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.