/kernel/linux/linux-5.10/net/mac80211/ |
H A D | mesh_plink.c | 14 #include "mesh.h" 20 #define mod_plink_timer(s, t) (mod_timer(&s->mesh->plink_timer, \ 61 s32 rssi_threshold = sdata->u.mesh.mshcfg.rssi_threshold; in rssi_threshold_check() 69 * mesh_plink_fsm_restart - restart a mesh peer link finite state machine 71 * @sta: mesh peer link to restart 73 * Locking: this function must be called holding sta->mesh->plink_lock 77 lockdep_assert_held(&sta->mesh->plink_lock); in mesh_plink_fsm_restart() 78 sta->mesh->plink_state = NL80211_PLINK_LISTEN; in mesh_plink_fsm_restart() 79 sta->mesh->llid = sta->mesh in mesh_plink_fsm_restart() 636 struct mesh_sta *mesh = from_timer(mesh, t, plink_timer); mesh_plink_timer() local [all...] |
H A D | mesh_pathtbl.c | 16 #include "mesh.h" 71 * mesh_path_assign_nexthop - update mesh path next hop 73 * @mpath: mesh path to update 110 /* size of the fixed part of the mesh header */ in prepare_for_gate() 119 /* we preserve the previous mesh header and only add in prepare_for_gate() 222 * mesh_path_lookup - look up a path in the mesh path table 226 * Returns: pointer to the mesh path structure, or NULL if not found 233 return mpath_lookup(&sdata->u.mesh.mesh_paths, dst, sdata); in mesh_path_lookup() 239 return mpath_lookup(&sdata->u.mesh.mpp_paths, dst, sdata); in mpp_path_lookup() 265 * mesh_path_lookup_by_idx - look up a path in the mesh pat [all...] |
H A D | mesh_ps.c | 8 #include "mesh.h" 12 /* mesh PS management */ 15 * mps_qos_null_get - create pre-addressed QoS Null frame for mesh powersave 75 * @sdata: local mesh subif 82 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mps_local_status_update() 95 switch (sta->mesh->plink_state) { in ieee80211_mps_local_status_update() 102 if (sta->mesh->local_pm == NL80211_MESH_POWER_LIGHT_SLEEP) in ieee80211_mps_local_status_update() 104 else if (sta->mesh->local_pm == NL80211_MESH_POWER_DEEP_SLEEP) in ieee80211_mps_local_status_update() 115 * (see IEEE802.11-2012 13.14.8.3). The non-peer mesh power mode is in ieee80211_mps_local_status_update() 117 * least one mesh pee in ieee80211_mps_local_status_update() [all...] |
H A D | mesh_sync.c | 9 #include "mesh.h" 38 * @ie: information elements of a management frame from the mesh peer 49 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_adjust_tsf() 85 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_offset_rx_bcn_presp() 130 sta->mesh->t_offset = t_t - t_r; in mesh_sync_offset_rx_bcn_presp() 133 s64 t_clockdrift = sta->mesh->t_offset_setpoint - sta->mesh->t_offset; in mesh_sync_offset_rx_bcn_presp() 136 sta->sta.addr, (long long) sta->mesh->t_offset, in mesh_sync_offset_rx_bcn_presp() 137 (long long) sta->mesh->t_offset_setpoint, in mesh_sync_offset_rx_bcn_presp() 155 sta->mesh in mesh_sync_offset_rx_bcn_presp() [all...] |
H A D | debugfs_netdev.c | 581 IEEE80211_IF_FILE(estab_plinks, u.mesh.estab_plinks, ATOMIC); 584 IEEE80211_IF_FILE(fwded_mcast, u.mesh.mshstats.fwded_mcast, DEC); 585 IEEE80211_IF_FILE(fwded_unicast, u.mesh.mshstats.fwded_unicast, DEC); 586 IEEE80211_IF_FILE(fwded_frames, u.mesh.mshstats.fwded_frames, DEC); 587 IEEE80211_IF_FILE(dropped_frames_ttl, u.mesh.mshstats.dropped_frames_ttl, DEC); 589 u.mesh.mshstats.dropped_frames_congestion, DEC); 591 u.mesh.mshstats.dropped_frames_no_route, DEC); 595 u.mesh.mshcfg.dot11MeshMaxRetries, DEC); 597 u.mesh.mshcfg.dot11MeshRetryTimeout, DEC); 599 u.mesh [all...] |
H A D | mesh_hwmp.c | 12 #include "mesh.h" 80 msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPnetDiameterTraversalTime) 82 MSEC_TO_TU(s->u.mesh.mshcfg.dot11MeshHWMPactivePathTimeout) 84 (msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPpreqMinInterval)) 85 #define max_preq_retries(s) (s->u.mesh.mshcfg.dot11MeshHWMPmaxPREQretries) 87 msecs_to_jiffies(sdata->u.mesh.mshcfg.min_discovery_timeout) 89 msecs_to_jiffies(sdata->u.mesh.mshcfg.dot11MeshHWMPconfirmationInterval) 221 * mesh_path_error_tx - Sends a PERR mesh management frame 228 * @sdata: local mesh subif 240 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_path_error_tx() [all...] |
H A D | mesh.c | 12 #include "mesh.h" 41 from_timer(sdata, t, u.mesh.housekeeping_timer); in ieee80211_mesh_housekeeping_timer() 43 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping_timer() 51 * mesh_matches_local - check if the config of a mesh point matches ours 53 * @sdata: local mesh subif 54 * @ie: information elements of a management frame from the mesh peer 56 * This function checks if the mesh configuration of a mesh point matches the 57 * local mesh configuration, i.e. if both nodes belong to the same mesh networ [all...] |
H A D | mesh.h | 19 * enum mesh_path_flags - mac80211 mesh path flags 21 * @MESH_PATH_ACTIVE: the mesh path can be used for forwarding 22 * @MESH_PATH_RESOLVING: the discovery process is running for this mesh path 23 * @MESH_PATH_SN_VALID: the mesh path contains a valid destination sequence 25 * @MESH_PATH_FIXED: the mesh path has been manually set and should not be 27 * @MESH_PATH_RESOLVED: the mesh path can has been resolved 30 * @MESH_PATH_DELETED: the mesh path has been deleted and should no longer 33 * MESH_PATH_RESOLVED is used by the mesh path timer to 34 * decide when to stop or cancel the mesh path discovery. 47 * enum mesh_deferred_task_flags - mac80211 mesh deferre [all...] |
H A D | sta_info.c | 28 #include "mesh.h" 44 * particular, it may not start any mesh peer link management or add 99 ps = &sdata->u.mesh.ps; in __cleanup_single_sta() 288 kfree(sta->mesh); in sta_info_free() 362 sta->mesh = kzalloc(sizeof(*sta->mesh), gfp); in sta_info_alloc() 363 if (!sta->mesh) in sta_info_alloc() 365 sta->mesh->plink_sta = sta; in sta_info_alloc() 366 spin_lock_init(&sta->mesh->plink_lock); in sta_info_alloc() 368 !sdata->u.mesh in sta_info_alloc() [all...] |
H A D | Makefile | 47 mesh.o \
|
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | mesh_plink.c | 14 #include "mesh.h" 20 #define mod_plink_timer(s, t) (mod_timer(&s->mesh->plink_timer, \ 61 s32 rssi_threshold = sdata->u.mesh.mshcfg.rssi_threshold; in rssi_threshold_check() 69 * mesh_plink_fsm_restart - restart a mesh peer link finite state machine 71 * @sta: mesh peer link to restart 73 * Locking: this function must be called holding sta->mesh->plink_lock 77 lockdep_assert_held(&sta->mesh->plink_lock); in mesh_plink_fsm_restart() 78 sta->mesh->plink_state = NL80211_PLINK_LISTEN; in mesh_plink_fsm_restart() 79 sta->mesh->llid = sta->mesh in mesh_plink_fsm_restart() 650 struct mesh_sta *mesh = from_timer(mesh, t, plink_timer); mesh_plink_timer() local [all...] |
H A D | mesh_ps.c | 9 #include "mesh.h" 13 /* mesh PS management */ 16 * mps_qos_null_get - create pre-addressed QoS Null frame for mesh powersave 76 * @sdata: local mesh subif 83 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mps_local_status_update() 96 switch (sta->mesh->plink_state) { in ieee80211_mps_local_status_update() 103 if (sta->mesh->local_pm == NL80211_MESH_POWER_LIGHT_SLEEP) in ieee80211_mps_local_status_update() 105 else if (sta->mesh->local_pm == NL80211_MESH_POWER_DEEP_SLEEP) in ieee80211_mps_local_status_update() 116 * (see IEEE802.11-2012 13.14.8.3). The non-peer mesh power mode is in ieee80211_mps_local_status_update() 118 * least one mesh pee in ieee80211_mps_local_status_update() [all...] |
H A D | mesh_sync.c | 10 #include "mesh.h" 39 * @cfg: mesh config element from the mesh peer (or %NULL) 50 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_adjust_tsf() 86 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_offset_rx_bcn_presp() 128 sta->mesh->t_offset = t_t - t_r; in mesh_sync_offset_rx_bcn_presp() 131 s64 t_clockdrift = sta->mesh->t_offset_setpoint - sta->mesh->t_offset; in mesh_sync_offset_rx_bcn_presp() 134 sta->sta.addr, (long long) sta->mesh->t_offset, in mesh_sync_offset_rx_bcn_presp() 135 (long long) sta->mesh in mesh_sync_offset_rx_bcn_presp() [all...] |
H A D | mesh_pathtbl.c | 16 #include "mesh.h" 56 cache = &sdata->u.mesh.tx_cache; in mesh_fast_tx_deinit() 65 cache = &sdata->u.mesh.tx_cache; in mesh_fast_tx_init() 107 * mesh_path_assign_nexthop - update mesh path next hop 109 * @mpath: mesh path to update 146 /* size of the fixed part of the mesh header */ in prepare_for_gate() 155 /* we preserve the previous mesh header and only add in prepare_for_gate() 258 * mesh_path_lookup - look up a path in the mesh path table 262 * Returns: pointer to the mesh path structure, or NULL if not found 269 return mpath_lookup(&sdata->u.mesh in mesh_path_lookup() [all...] |
H A D | mesh.c | 12 #include "mesh.h" 42 from_timer(sdata, t, u.mesh.housekeeping_timer); in ieee80211_mesh_housekeeping_timer() 44 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping_timer() 52 * mesh_matches_local - check if the config of a mesh point matches ours 54 * @sdata: local mesh subif 55 * @ie: information elements of a management frame from the mesh peer 57 * This function checks if the mesh configuration of a mesh point matches the 58 * local mesh configuration, i.e. if both nodes belong to the same mesh networ [all...] |
H A D | mesh_hwmp.c | 12 #include "mesh.h" 80 msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPnetDiameterTraversalTime) 82 MSEC_TO_TU(s->u.mesh.mshcfg.dot11MeshHWMPactivePathTimeout) 84 (msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPpreqMinInterval)) 85 #define max_preq_retries(s) (s->u.mesh.mshcfg.dot11MeshHWMPmaxPREQretries) 87 msecs_to_jiffies(sdata->u.mesh.mshcfg.min_discovery_timeout) 89 msecs_to_jiffies(sdata->u.mesh.mshcfg.dot11MeshHWMPconfirmationInterval) 221 * mesh_path_error_tx - Sends a PERR mesh management frame 228 * @sdata: local mesh subif 240 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_path_error_tx() [all...] |
H A D | debugfs_netdev.c | 629 IEEE80211_IF_FILE(estab_plinks, u.mesh.estab_plinks, ATOMIC); 632 IEEE80211_IF_FILE(fwded_mcast, u.mesh.mshstats.fwded_mcast, DEC); 633 IEEE80211_IF_FILE(fwded_unicast, u.mesh.mshstats.fwded_unicast, DEC); 634 IEEE80211_IF_FILE(fwded_frames, u.mesh.mshstats.fwded_frames, DEC); 635 IEEE80211_IF_FILE(dropped_frames_ttl, u.mesh.mshstats.dropped_frames_ttl, DEC); 637 u.mesh.mshstats.dropped_frames_no_route, DEC); 641 u.mesh.mshcfg.dot11MeshMaxRetries, DEC); 643 u.mesh.mshcfg.dot11MeshRetryTimeout, DEC); 645 u.mesh.mshcfg.dot11MeshConfirmTimeout, DEC); 647 u.mesh [all...] |
H A D | mesh.h | 20 * enum mesh_path_flags - mac80211 mesh path flags 22 * @MESH_PATH_ACTIVE: the mesh path can be used for forwarding 23 * @MESH_PATH_RESOLVING: the discovery process is running for this mesh path 24 * @MESH_PATH_SN_VALID: the mesh path contains a valid destination sequence 26 * @MESH_PATH_FIXED: the mesh path has been manually set and should not be 28 * @MESH_PATH_RESOLVED: the mesh path can has been resolved 31 * @MESH_PATH_DELETED: the mesh path has been deleted and should no longer 34 * MESH_PATH_RESOLVED is used by the mesh path timer to 35 * decide when to stop or cancel the mesh path discovery. 48 * enum mesh_deferred_task_flags - mac80211 mesh deferre [all...] |
H A D | sta_info.c | 28 #include "mesh.h" 44 * particular, it may not start any mesh peer link management or add 132 ps = &sdata->u.mesh.ps; in __cleanup_single_sta() 436 kfree(sta->mesh); in sta_info_free() 566 sta->mesh = kzalloc(sizeof(*sta->mesh), gfp); in __sta_info_alloc() 567 if (!sta->mesh) in __sta_info_alloc() 569 sta->mesh->plink_sta = sta; in __sta_info_alloc() 570 spin_lock_init(&sta->mesh->plink_lock); in __sta_info_alloc() 571 if (!sdata->u.mesh in __sta_info_alloc() [all...] |
H A D | Makefile | 49 mesh.o \
|
/kernel/linux/linux-6.6/net/wireless/ |
H A D | mesh.c | 121 if (wdev->u.mesh.id_len) in __cfg80211_join_mesh() 132 setup->chandef = wdev->u.mesh.preset_chandef; in __cfg80211_join_mesh() 187 * mesh to be interoperable with older versions. in __cfg80211_join_mesh() 216 memcpy(wdev->u.mesh.id, setup->mesh_id, setup->mesh_id_len); in __cfg80211_join_mesh() 217 wdev->u.mesh.id_len = setup->mesh_id_len; in __cfg80211_join_mesh() 218 wdev->u.mesh.chandef = setup->chandef; in __cfg80211_join_mesh() 219 wdev->u.mesh.beacon_interval = setup->beacon_interval; in __cfg80211_join_mesh() 233 * into mesh mode but doesn't implement join_mesh. Instead, in cfg80211_set_mesh_channel() 234 * it is configured via sysfs and then joins the mesh when in cfg80211_set_mesh_channel() 235 * you set the channel. Note that the libertas mesh is in cfg80211_set_mesh_channel() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | mesh.c | 50 #include "mesh.h" 145 volatile struct mesh_regs __iomem *mesh; member 223 tlp->bs0 = ms->mesh->bus_status0; in dlog() 224 tlp->bs1 = ms->mesh->bus_status1; in dlog() 252 printk(KERN_DEBUG "mesh log %d: bs=%.2x%.2x ph=%.2x ", in dumplog() 277 printk(KERN_DEBUG "mesh log: bs=%.2x%.2x ph=%.2x t%d ", in dumpslog() 305 volatile struct mesh_regs __iomem *mr = ms->mesh; in mesh_dump_regs() 310 printk(KERN_DEBUG "mesh: state at %p, regs at %p, dma at %p\n", in mesh_dump_regs() 337 * Flush write buffers on the bus path to the mesh 360 volatile struct mesh_regs __iomem *mr = ms->mesh; in mesh_init() 1853 struct device_node *mesh = macio_get_of_node(mdev); mesh_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | mesh.c | 50 #include "mesh.h" 145 volatile struct mesh_regs __iomem *mesh; member 223 tlp->bs0 = ms->mesh->bus_status0; in dlog() 224 tlp->bs1 = ms->mesh->bus_status1; in dlog() 252 printk(KERN_DEBUG "mesh log %d: bs=%.2x%.2x ph=%.2x ", in dumplog() 277 printk(KERN_DEBUG "mesh log: bs=%.2x%.2x ph=%.2x t%d ", in dumpslog() 305 volatile struct mesh_regs __iomem *mr = ms->mesh; in mesh_dump_regs() 310 printk(KERN_DEBUG "mesh: state at %p, regs at %p, dma at %p\n", in mesh_dump_regs() 337 * Flush write buffers on the bus path to the mesh 351 volatile struct mesh_regs __iomem *mr = ms->mesh; in mesh_init() 1849 struct device_node *mesh = macio_get_of_node(mdev); mesh_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/libertas/ |
H A D | mesh.c | 14 #include "mesh.h" 49 * Command id is 0xac for v10 FW along with mesh interface in __lbs_mesh_config_send() 112 ie->val.mesh_id_len = mesh_wdev->u.mesh.id_up_len; in lbs_mesh_config() 113 memcpy(ie->val.mesh_id, mesh_wdev->u.mesh.id, in lbs_mesh_config() 114 mesh_wdev->u.mesh.id_up_len); in lbs_mesh_config() 127 lbs_deb_cmd("mesh config action %d type %x channel %d SSID %*pE\n", in lbs_mesh_config() 266 * lbs_mesh_show - Get function for sysfs attribute mesh 279 * lbs_mesh_store - Set function for sysfs attribute mesh 545 dev_err(dev, "inconsistent mesh ID length\n"); in mesh_id_show() 828 * Initializing and starting, stopping mesh [all...] |
/kernel/linux/linux-5.10/net/wireless/ |
H A D | Makefile | 14 cfg80211-y += mlme.o ibss.o sme.o chan.o ethtool.o mesh.o ap.o trace.o ocb.o
|