Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | 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"

Go to the source code of this file.

Macros

#define PLINK_GET_LLID(p)   (p + 2)
 
#define PLINK_GET_PLID(p)   (p + 4)
 
#define mod_plink_timer(s, t)
 
#define dot11MeshMaxRetries(s)   (s->u.mesh.mshcfg.dot11MeshMaxRetries)
 
#define dot11MeshRetryTimeout(s)   (s->u.mesh.mshcfg.dot11MeshRetryTimeout)
 
#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 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
}
 

Functions

void 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)
 
int mesh_plink_open (struct sta_info *sta)
 
void mesh_plink_block (struct sta_info *sta)
 
void mesh_rx_plink_frame (struct ieee80211_sub_if_data *sdata, struct ieee80211_mgmt *mgmt, size_t len, struct ieee80211_rx_status *rx_status)
 

Macro Definition Documentation

#define dot11MeshConfirmTimeout (   s)    (s->u.mesh.mshcfg.dot11MeshConfirmTimeout)

Definition at line 24 of file mesh_plink.c.

#define dot11MeshHoldingTimeout (   s)    (s->u.mesh.mshcfg.dot11MeshHoldingTimeout)

Definition at line 25 of file mesh_plink.c.

#define dot11MeshMaxPeerLinks (   s)    (s->u.mesh.mshcfg.dot11MeshMaxPeerLinks)

Definition at line 26 of file mesh_plink.c.

#define dot11MeshMaxRetries (   s)    (s->u.mesh.mshcfg.dot11MeshMaxRetries)

Definition at line 22 of file mesh_plink.c.

#define dot11MeshRetryTimeout (   s)    (s->u.mesh.mshcfg.dot11MeshRetryTimeout)

Definition at line 23 of file mesh_plink.c.

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

Definition at line 19 of file mesh_plink.c.

#define PLINK_GET_LLID (   p)    (p + 2)

Definition at line 16 of file mesh_plink.c.

#define PLINK_GET_PLID (   p)    (p + 4)

Definition at line 17 of file 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 29 of file 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 

Definition at line 34 of file mesh_plink.c.

Function Documentation

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

Definition at line 406 of file mesh_plink.c.

void mesh_plink_block ( struct sta_info sta)

Definition at line 556 of file 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 198 of file mesh_plink.c.

int mesh_plink_open ( struct sta_info sta)

Definition at line 529 of file 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 570 of file mesh_plink.c.