Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mesh.c File Reference
#include <linux/ieee80211.h>
#include <linux/export.h>
#include <net/cfg80211.h>
#include "nl80211.h"
#include "core.h"

Go to the source code of this file.


#define MESH_TTL   31
#define MESH_MAX_RETR   3
#define MESH_RET_T   100
#define MESH_CONF_T   100
#define MESH_HOLD_T   100
#define MESH_PATH_TIMEOUT   5000
#define MESH_RANN_INTERVAL   5000
#define MESH_ROOT_INTERVAL   5000
#define MESH_PREQ_MIN_INT   10
#define MESH_PERR_MIN_INT   100


int __cfg80211_join_mesh (struct cfg80211_registered_device *rdev, struct net_device *dev, struct mesh_setup *setup, const struct mesh_config *conf)
int cfg80211_join_mesh (struct cfg80211_registered_device *rdev, struct net_device *dev, struct mesh_setup *setup, const struct mesh_config *conf)
int cfg80211_set_mesh_freq (struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, int freq, enum nl80211_channel_type channel_type)
void cfg80211_notify_new_peer_candidate (struct net_device *dev, const u8 *macaddr, const u8 *ie, u8 ie_len, gfp_t gfp)
 EXPORT_SYMBOL (cfg80211_notify_new_peer_candidate)
int cfg80211_leave_mesh (struct cfg80211_registered_device *rdev, struct net_device *dev)


struct mesh_config default_mesh_config
struct mesh_setup default_mesh_setup

Macro Definition Documentation

#define MESH_CONF_T   100

Definition at line 12 of file mesh.c.


Definition at line 9 of file mesh.c.


Definition at line 27 of file mesh.c.

#define MESH_HOLD_T   100

Definition at line 13 of file mesh.c.


Definition at line 40 of file mesh.c.


Definition at line 42 of file mesh.c.

#define MESH_MAX_RETR   3

Definition at line 10 of file mesh.c.


Definition at line 37 of file mesh.c.


Definition at line 36 of file mesh.c.

#define MESH_PATH_TIMEOUT   5000

Definition at line 15 of file mesh.c.


Definition at line 17 of file mesh.c.

#define MESH_PERR_MIN_INT   100

Definition at line 26 of file mesh.c.

#define MESH_PREQ_MIN_INT   10

Definition at line 25 of file mesh.c.

#define MESH_RANN_INTERVAL   5000

Definition at line 16 of file mesh.c.

#define MESH_RET_T   100

Definition at line 11 of file mesh.c.


Definition at line 19 of file mesh.c.

#define MESH_ROOT_INTERVAL   5000

Definition at line 18 of file mesh.c.


Definition at line 29 of file mesh.c.


Definition at line 44 of file mesh.c.

#define MESH_TTL   31

Definition at line 8 of file mesh.c.

Function Documentation

int __cfg80211_join_mesh ( struct cfg80211_registered_device rdev,
struct net_device dev,
struct mesh_setup setup,
const struct mesh_config conf 

Definition at line 85 of file mesh.c.

int cfg80211_join_mesh ( struct cfg80211_registered_device rdev,
struct net_device dev,
struct mesh_setup setup,
const struct mesh_config conf 

Definition at line 173 of file mesh.c.

int cfg80211_leave_mesh ( struct cfg80211_registered_device rdev,
struct net_device dev 

Definition at line 279 of file mesh.c.

void cfg80211_notify_new_peer_candidate ( struct net_device dev,
const u8 macaddr,
const u8 ie,
u8  ie_len,
gfp_t  gfp 

cfg80211_notify_new_candidate - notify cfg80211 of a new mesh peer candidate

: network device : the MAC address of the new candidate : information elements advertised by the peer candidate : lenght of the information elements buffer : allocation flags

This function notifies cfg80211 that the mesh peer candidate has been detected, most likely via a beacon or, less likely, via a probe response. cfg80211 then sends a notification to userspace.

Definition at line 240 of file mesh.c.

int cfg80211_set_mesh_freq ( struct cfg80211_registered_device rdev,
struct wireless_dev wdev,
int  freq,
enum nl80211_channel_type  channel_type 

Definition at line 190 of file mesh.c.

Variable Documentation

struct mesh_config default_mesh_config
Initial value:
= {
.dot11MeshRetryTimeout = MESH_RET_T,
.dot11MeshConfirmTimeout = MESH_CONF_T,
.dot11MeshHoldingTimeout = MESH_HOLD_T,
.dot11MeshMaxRetries = MESH_MAX_RETR,
.dot11MeshTTL = MESH_TTL,
.auto_open_plinks = true,
.dot11MeshMaxPeerLinks = MESH_MAX_ESTAB_PLINKS,
.dot11MeshNbrOffsetMaxNeighbor = MESH_SYNC_NEIGHBOR_OFFSET_MAX,
.dot11MeshHWMPactivePathTimeout = MESH_PATH_TIMEOUT,
.dot11MeshHWMPpreqMinInterval = MESH_PREQ_MIN_INT,
.dot11MeshHWMPperrMinInterval = MESH_PERR_MIN_INT,
.dot11MeshHWMPnetDiameterTraversalTime = MESH_DIAM_TRAVERSAL_TIME,
.path_refresh_time = MESH_PATH_REFRESH_TIME,
.min_discovery_timeout = MESH_MIN_DISCOVERY_TIMEOUT,
.dot11MeshHWMPRannInterval = MESH_RANN_INTERVAL,
.dot11MeshGateAnnouncementProtocol = false,
.dot11MeshForwarding = true,
.rssi_threshold = MESH_RSSI_THRESHOLD,
.dot11MeshHWMPactivePathToRootTimeout = MESH_PATH_TO_ROOT_TIMEOUT,
.dot11MeshHWMProotInterval = MESH_ROOT_INTERVAL,
.dot11MeshHWMPconfirmationInterval = MESH_ROOT_CONFIRMATION_INTERVAL,

Definition at line 46 of file mesh.c.

struct mesh_setup default_mesh_setup
Initial value:
= {
.channel = NULL,
.channel_type = NL80211_CHAN_NO_HT,
.path_sel_proto = IEEE80211_PATH_PROTOCOL_HWMP,
.ie = NULL,
.ie_len = 0,
.is_secure = false,

Definition at line 73 of file mesh.c.