2 #include <linux/export.h>
9 #define MESH_DEFAULT_ELEMENT_TTL 31
10 #define MESH_MAX_RETR 3
11 #define MESH_RET_T 100
12 #define MESH_CONF_T 100
13 #define MESH_HOLD_T 100
15 #define MESH_PATH_TIMEOUT 5000
16 #define MESH_RANN_INTERVAL 5000
17 #define MESH_PATH_TO_ROOT_TIMEOUT 6000
18 #define MESH_ROOT_INTERVAL 5000
19 #define MESH_ROOT_CONFIRMATION_INTERVAL 2000
25 #define MESH_PREQ_MIN_INT 10
26 #define MESH_PERR_MIN_INT 100
27 #define MESH_DIAM_TRAVERSAL_TIME 50
29 #define MESH_RSSI_THRESHOLD 0
36 #define MESH_PATH_REFRESH_TIME 1000
37 #define MESH_MIN_DISCOVERY_TIMEOUT (2 * MESH_DIAM_TRAVERSAL_TIME)
40 #define MESH_MAX_ESTAB_PLINKS 32
42 #define MESH_MAX_PREQ_RETRIES 4
44 #define MESH_SYNC_NEIGHBOR_OFFSET_MAX 50
53 .auto_open_plinks =
true,
64 .dot11MeshGateAnnouncementProtocol =
false,
65 .dot11MeshForwarding =
true,
110 if (!rdev->
ops->join_mesh)
128 sband = rdev->wiphy.bands[
band];
158 err = cfg80211_can_use_chan(rdev, wdev, setup->
channel,
163 err = rdev->
ops->join_mesh(&rdev->wiphy, dev, conf, setup);
211 if (rdev->
ops->libertas_set_mesh_channel) {
215 if (!netif_running(wdev->
netdev))
218 err = cfg80211_can_use_chan(rdev, wdev, channel,
223 err = rdev->
ops->libertas_set_mesh_channel(&rdev->wiphy,
249 macaddr, ie, ie_len, gfp);
264 if (!rdev->
ops->leave_mesh)
270 err = rdev->
ops->leave_mesh(&rdev->wiphy, dev);
286 err = __cfg80211_leave_mesh(rdev, dev);