Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121754
b: refs/heads/master
c: 1239cd5
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Nov 10, 2008
1 parent de360ef commit 23e93e7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 97c8b013da7a8ec7aa0a192489d4e7a33c4127fc
refs/heads/master: 1239cd58d237fa6ad501acaec8776262a5784ec8
3 changes: 3 additions & 0 deletions trunk/include/linux/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@
#define IEEE80211_MAX_FRAME_LEN 2352

#define IEEE80211_MAX_SSID_LEN 32

#define IEEE80211_MAX_MESH_ID_LEN 32
#define IEEE80211_MESH_CONFIG_LEN 19

#define IEEE80211_QOS_CTL_LEN 2
#define IEEE80211_QOS_CTL_TID_MASK 0x000F
#define IEEE80211_QOS_CTL_TAG1D_MASK 0x0007
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/mac80211/mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void mesh_mgmt_ies_add(struct sk_buff *skb, struct ieee80211_sub_if_data *sdata)

pos = skb_put(skb, 21);
*pos++ = WLAN_EID_MESH_CONFIG;
*pos++ = MESH_CFG_LEN;
*pos++ = IEEE80211_MESH_CONFIG_LEN;
/* Version */
*pos++ = 1;

Expand Down
5 changes: 1 addition & 4 deletions trunk/net/mac80211/mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ struct mesh_rmc {
};


/* Mesh IEs constants */
#define MESH_CFG_LEN 19

/*
* MESH_CFG_COMP_LEN Includes:
* - Active path selection protocol ID.
Expand All @@ -157,7 +154,7 @@ struct mesh_rmc {
* Does not include mesh capabilities, which may vary across nodes in the same
* mesh
*/
#define MESH_CFG_CMP_LEN 17
#define MESH_CFG_CMP_LEN (IEEE80211_MESH_CONFIG_LEN - 2)

/* Default values, timeouts in ms */
#define MESH_TTL 5
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/mac80211/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ ieee80211_rx_mesh_bss_add(struct ieee80211_local *local, u8 *mesh_id, int mesh_i
{
struct ieee80211_bss *bss;

if (mesh_config_len != MESH_CFG_LEN)
if (mesh_config_len != IEEE80211_MESH_CONFIG_LEN)
return NULL;

bss = kzalloc(sizeof(*bss), GFP_ATOMIC);
Expand Down

0 comments on commit 23e93e7

Please sign in to comment.