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.5/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)
#define rssi_threshold_check(sta, sdata)

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 (struct ieee80211_sub_if_data *sdata, u8 *hw_addr, struct ieee802_11_elems *elems)
static struct sta_infomesh_peer_init (struct ieee80211_sub_if_data *sdata, u8 *addr, struct ieee802_11_elems *elems)
static struct sta_infomesh_plink_alloc (struct ieee80211_sub_if_data *sdata, u8 *hw_addr)
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)
static u32 mesh_set_ht_prot_mode (struct ieee80211_sub_if_data *sdata)

Define Documentation

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

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

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

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

Definition at line 29 of file kernel-3.5/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.5/mesh_plink.c.

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

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

#define PLINK_GET_LLID (   p)    (p + 2)

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

#define PLINK_GET_PLID (   p)    (p + 4)

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

#define rssi_threshold_check (   sta,
  sdata 
)
Value:
(sdata->u.mesh.mshcfg.rssi_threshold == 0 ||\
                (sta && (s8) -ewma_read(&sta->avg_signal) > \
                sdata->u.mesh.mshcfg.rssi_threshold))

Definition at line 35 of file kernel-3.5/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 40 of file kernel-3.5/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 179 of file kernel-3.5/mesh_plink.c.

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

Definition at line 394 of file kernel-3.5/mesh_plink.c.

static struct sta_info* mesh_peer_init ( struct ieee80211_sub_if_data sdata,
u8 addr,
struct ieee802_11_elems elems 
) [static, read]

Definition at line 334 of file kernel-3.5/mesh_plink.c.

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

Definition at line 87 of file kernel-3.5/mesh_plink.c.

void mesh_plink_block ( struct sta_info sta)

Definition at line 540 of file kernel-3.5/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 201 of file kernel-3.5/mesh_plink.c.

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

Definition at line 64 of file kernel-3.5/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 218 of file kernel-3.5/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 77 of file kernel-3.5/mesh_plink.c.

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

Definition at line 57 of file kernel-3.5/mesh_plink.c.

int mesh_plink_open ( struct sta_info sta)

Definition at line 515 of file kernel-3.5/mesh_plink.c.

static void mesh_plink_timer ( unsigned long  data) [static]

Definition at line 416 of file kernel-3.5/mesh_plink.c.

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

Definition at line 506 of file kernel-3.5/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 555 of file kernel-3.5/mesh_plink.c.

static u32 mesh_set_ht_prot_mode ( struct ieee80211_sub_if_data sdata) [static]

Definition at line 118 of file kernel-3.5/mesh_plink.c.



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