Commit 095de013 authored by Rui Paulo's avatar Rui Paulo Committed by John W. Linville

mac80211: update the format of path selection frames

Update the format of path selection frames according to latest
draft (3.03).
Signed-off-by: default avatarRui Paulo <rpaulo@gmail.com>
Signed-off-by: default avatarJavier Cardona <javier@cozybit.com>
Reviewed-by: default avatarAndrey Yurovsky <andrey@cozybit.com>
Tested-by: default avatarBrian Cavagnolo <brian@cozybit.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 0938393f
...@@ -208,6 +208,7 @@ struct mesh_rmc { ...@@ -208,6 +208,7 @@ struct mesh_rmc {
/* Pending ANA approval */ /* Pending ANA approval */
#define MESH_PLINK_CATEGORY 30 #define MESH_PLINK_CATEGORY 30
#define MESH_PATH_SEL_CATEGORY 32 #define MESH_PATH_SEL_CATEGORY 32
#define MESH_PATH_SEL_ACTION 0
/* Public interfaces */ /* Public interfaces */
/* Various */ /* Various */
......
...@@ -105,7 +105,7 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, ...@@ -105,7 +105,7 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags,
memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN);
/* BSSID is left zeroed, wildcard value */ /* BSSID is left zeroed, wildcard value */
mgmt->u.action.category = MESH_PATH_SEL_CATEGORY; mgmt->u.action.category = MESH_PATH_SEL_CATEGORY;
mgmt->u.action.u.mesh_action.action_code = action; mgmt->u.action.u.mesh_action.action_code = MESH_PATH_SEL_ACTION;
switch (action) { switch (action) {
case MPATH_PREQ: case MPATH_PREQ:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment