Defines | Enumerations | Functions
mesh_plink.c File Reference
#include <linux/gfp.h>
#include <linux/kernel.h>
#include <linux/random.h>
#include "ieee80211_i.h"
#include "rate.h"
#include "mesh.h"
Include dependency graph for kernel-3.2/mesh_plink.c:

Go to the source code of this file.

Defines

#define dot11MeshConfirmTimeout(s)   (s->u.mesh.mshcfg.dot11MeshConfirmTimeout)
#define dot11MeshHoldingTimeout(s)   (s->u.mesh.mshcfg.dot11MeshHoldingTimeout)
#define dot11MeshMaxPeerLinks(s)   (s->u.mesh.mshcfg.dot11MeshMaxPeerLinks)
#define dot11MeshMaxRetries(s)   (s->u.mesh.mshcfg.dot11MeshMaxRetries)
#define dot11MeshRetryTimeout(s)   (s->u.mesh.mshcfg.dot11MeshRetryTimeout)
#define mod_plink_timer(s, t)
#define mpl_dbg(fmt, args...)   do { (void)(0); } while (0)
#define PLINK_GET_LLID(p)   (p + 2)
#define PLINK_GET_PLID(p)   (p + 4)

Enumerations

enum  plink_event {
  PLINK_UNDEFINED, OPN_ACPT, OPN_RJCT, OPN_IGNR,
  CNF_ACPT, CNF_RJCT, CNF_IGNR, CLS_ACPT,
  CLS_IGNR, PLINK_UNDEFINED, OPN_ACPT, OPN_RJCT,
  OPN_IGNR, CNF_ACPT, CNF_RJCT, CNF_IGNR,
  CLS_ACPT, CLS_IGNR
}

Functions

static bool __mesh_plink_deactivate (struct sta_info *sta)
void mesh_neighbour_update (u8 *hw_addr, u32 rates, struct ieee80211_sub_if_data *sdata, struct ieee802_11_elems *elems)
static struct sta_infomesh_plink_alloc (struct ieee80211_sub_if_data *sdata, u8 *hw_addr, u32 rates)
void mesh_plink_block (struct sta_info *sta)
void mesh_plink_deactivate (struct sta_info *sta)
static void mesh_plink_dec_estab_count (struct ieee80211_sub_if_data *sdata)
static int mesh_plink_frame_tx (struct ieee80211_sub_if_data *sdata, enum ieee80211_self_protected_actioncode action, u8 *da, __le16 llid, __le16 plid, __le16 reason)
static void mesh_plink_fsm_restart (struct sta_info *sta)
static void mesh_plink_inc_estab_count (struct ieee80211_sub_if_data *sdata)
int mesh_plink_open (struct sta_info *sta)
static void mesh_plink_timer (unsigned long data)
static void mesh_plink_timer_set (struct sta_info *sta, int timeout)
void mesh_rx_plink_frame (struct ieee80211_sub_if_data *sdata, struct ieee80211_mgmt *mgmt, size_t len, struct ieee80211_rx_status *rx_status)

Define Documentation

Definition at line 30 of file kernel-3.2/mesh_plink.c.

Definition at line 31 of file kernel-3.2/mesh_plink.c.

Definition at line 32 of file kernel-3.2/mesh_plink.c.

Definition at line 28 of file kernel-3.2/mesh_plink.c.

Definition at line 29 of file kernel-3.2/mesh_plink.c.

#define mod_plink_timer (   s,
  t 
)
Value:
(mod_timer(&s->plink_timer, \
                                jiffies + HZ * t / 1000))

Definition at line 25 of file kernel-3.2/mesh_plink.c.

#define mpl_dbg (   fmt,
  args... 
)    do { (void)(0); } while (0)

Definition at line 19 of file kernel-3.2/mesh_plink.c.

#define PLINK_GET_LLID (   p)    (p + 2)

Definition at line 22 of file kernel-3.2/mesh_plink.c.

#define PLINK_GET_PLID (   p)    (p + 4)

Definition at line 23 of file kernel-3.2/mesh_plink.c.


Enumeration Type Documentation

Enumerator:
PLINK_UNDEFINED 
OPN_ACPT 
OPN_RJCT 
OPN_IGNR 
CNF_ACPT 
CNF_RJCT 
CNF_IGNR 
CLS_ACPT 
CLS_IGNR 
PLINK_UNDEFINED 
OPN_ACPT 
OPN_RJCT 
OPN_IGNR 
CNF_ACPT 
CNF_RJCT 
CNF_IGNR 
CLS_ACPT 
CLS_IGNR 

Definition at line 34 of file kernel-3.2/mesh_plink.c.


Function Documentation

static bool __mesh_plink_deactivate ( struct sta_info sta) [static]

__mesh_plink_deactivate - deactivate mesh peer link

: mesh peer link to deactivate

All mesh paths with this peer as next hop will be flushed

Locking: the caller must hold sta->lock

Definition at line 113 of file kernel-3.2/mesh_plink.c.

void mesh_neighbour_update ( u8 hw_addr,
u32  rates,
struct ieee80211_sub_if_data sdata,
struct ieee802_11_elems elems 
)

Definition at line 245 of file kernel-3.2/mesh_plink.c.

static struct sta_info* mesh_plink_alloc ( struct ieee80211_sub_if_data sdata,
u8 hw_addr,
u32  rates 
) [static, read]

Definition at line 82 of file kernel-3.2/mesh_plink.c.

void mesh_plink_block ( struct sta_info sta)

Definition at line 408 of file kernel-3.2/mesh_plink.c.

void mesh_plink_deactivate ( struct sta_info sta)

mesh_plink_deactivate - deactivate mesh peer link

: mesh peer link to deactivate

All mesh paths with this peer as next hop will be flushed

Definition at line 135 of file kernel-3.2/mesh_plink.c.

static void mesh_plink_dec_estab_count ( struct ieee80211_sub_if_data sdata) [inline, static]

Definition at line 58 of file kernel-3.2/mesh_plink.c.

static int mesh_plink_frame_tx ( struct ieee80211_sub_if_data sdata,
enum ieee80211_self_protected_actioncode  action,
u8 da,
__le16  llid,
__le16  plid,
__le16  reason 
) [static]

Definition at line 152 of file kernel-3.2/mesh_plink.c.

static void mesh_plink_fsm_restart ( struct sta_info sta) [inline, static]

mesh_plink_fsm_restart - restart a mesh peer link finite state machine

: mesh peer link to restart

Locking: this function must be called holding sta->lock

Definition at line 71 of file kernel-3.2/mesh_plink.c.

static void mesh_plink_inc_estab_count ( struct ieee80211_sub_if_data sdata) [inline, static]

Definition at line 51 of file kernel-3.2/mesh_plink.c.

int mesh_plink_open ( struct sta_info sta)

Definition at line 383 of file kernel-3.2/mesh_plink.c.

static void mesh_plink_timer ( unsigned long  data) [static]

Definition at line 284 of file kernel-3.2/mesh_plink.c.

static void mesh_plink_timer_set ( struct sta_info sta,
int  timeout 
) [inline, static]

Definition at line 374 of file kernel-3.2/mesh_plink.c.

void mesh_rx_plink_frame ( struct ieee80211_sub_if_data sdata,
struct ieee80211_mgmt *  mgmt,
size_t  len,
struct ieee80211_rx_status rx_status 
)

Definition at line 423 of file kernel-3.2/mesh_plink.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Fri Jan 3 2014 12:07:57