mac80211: update the format of path selection frames
authorRui Paulo <rpaulo@gmail.com>
Mon, 9 Nov 2009 23:46:44 +0000 (23:46 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Nov 2009 20:23:58 +0000 (15:23 -0500)
Update the format of path selection frames according to latest
draft (3.03).

Signed-off-by: Rui Paulo <rpaulo@gmail.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Reviewed-by: Andrey Yurovsky <andrey@cozybit.com>
Tested-by: Brian Cavagnolo <brian@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh.h
net/mac80211/mesh_hwmp.c

index 536d5c07fd19e383114296041ab96e2457d2bb4f..2fd3e200a0634f90e3159dd0295c5f7f51edce98 100644 (file)
@@ -208,6 +208,7 @@ struct mesh_rmc {
 /* Pending ANA approval */
 #define MESH_PLINK_CATEGORY    30
 #define MESH_PATH_SEL_CATEGORY 32
+#define MESH_PATH_SEL_ACTION   0
 
 /* Public interfaces */
 /* Various */
index 29b82e98effa6406dd08169d3788041098145d5b..c291cdb75317eeac798881e66b22b961a928732f 100644 (file)
@@ -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);
        /* BSSID is left zeroed, wildcard value */
        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) {
        case MPATH_PREQ: