diff options
author | Javier Cardona <javier@cozybit.com> | 2010-12-16 20:37:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-20 14:46:57 -0500 |
commit | 24bdd9f4c9af75b33b438d60381a67626de0128d (patch) | |
tree | f5ff8c4f9ec2a7cdb976f419532179f2c46b06e8 /include | |
parent | 8a09d6d80c90c02f2f8c89f69c702cab0c8d9b42 (diff) |
mac80211: Rename mesh_params to mesh_config to prepare for mesh_setup
Mesh parameters can be to setup a mesh or to configure it.
This patch renames the ambiguous name mesh_params to mesh_config
in preparation for mesh_setup.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nl80211.h | 15 | ||||
-rw-r--r-- | include/net/cfg80211.h | 8 |
2 files changed, 14 insertions, 9 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 7483a89cee8f..11a1de67b618 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -172,10 +172,10 @@ | |||
172 | * to the specified ISO/IEC 3166-1 alpha2 country code. The core will | 172 | * to the specified ISO/IEC 3166-1 alpha2 country code. The core will |
173 | * store this as a valid request and then query userspace for it. | 173 | * store this as a valid request and then query userspace for it. |
174 | * | 174 | * |
175 | * @NL80211_CMD_GET_MESH_PARAMS: Get mesh networking properties for the | 175 | * @NL80211_CMD_GET_MESH_CONFIG: Get mesh networking properties for the |
176 | * interface identified by %NL80211_ATTR_IFINDEX | 176 | * interface identified by %NL80211_ATTR_IFINDEX |
177 | * | 177 | * |
178 | * @NL80211_CMD_SET_MESH_PARAMS: Set mesh networking properties for the | 178 | * @NL80211_CMD_SET_MESH_CONFIG: Set mesh networking properties for the |
179 | * interface identified by %NL80211_ATTR_IFINDEX | 179 | * interface identified by %NL80211_ATTR_IFINDEX |
180 | * | 180 | * |
181 | * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The | 181 | * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The |
@@ -448,8 +448,8 @@ enum nl80211_commands { | |||
448 | NL80211_CMD_SET_REG, | 448 | NL80211_CMD_SET_REG, |
449 | NL80211_CMD_REQ_SET_REG, | 449 | NL80211_CMD_REQ_SET_REG, |
450 | 450 | ||
451 | NL80211_CMD_GET_MESH_PARAMS, | 451 | NL80211_CMD_GET_MESH_CONFIG, |
452 | NL80211_CMD_SET_MESH_PARAMS, | 452 | NL80211_CMD_SET_MESH_CONFIG, |
453 | 453 | ||
454 | NL80211_CMD_SET_MGMT_EXTRA_IE /* reserved; not used */, | 454 | NL80211_CMD_SET_MGMT_EXTRA_IE /* reserved; not used */, |
455 | 455 | ||
@@ -538,6 +538,10 @@ enum nl80211_commands { | |||
538 | #define NL80211_CMD_DISASSOCIATE NL80211_CMD_DISASSOCIATE | 538 | #define NL80211_CMD_DISASSOCIATE NL80211_CMD_DISASSOCIATE |
539 | #define NL80211_CMD_REG_BEACON_HINT NL80211_CMD_REG_BEACON_HINT | 539 | #define NL80211_CMD_REG_BEACON_HINT NL80211_CMD_REG_BEACON_HINT |
540 | 540 | ||
541 | /* source-level API compatibility */ | ||
542 | #define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG | ||
543 | #define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG | ||
544 | |||
541 | /** | 545 | /** |
542 | * enum nl80211_attrs - nl80211 netlink attributes | 546 | * enum nl80211_attrs - nl80211 netlink attributes |
543 | * | 547 | * |
@@ -922,7 +926,7 @@ enum nl80211_attrs { | |||
922 | NL80211_ATTR_REG_ALPHA2, | 926 | NL80211_ATTR_REG_ALPHA2, |
923 | NL80211_ATTR_REG_RULES, | 927 | NL80211_ATTR_REG_RULES, |
924 | 928 | ||
925 | NL80211_ATTR_MESH_PARAMS, | 929 | NL80211_ATTR_MESH_CONFIG, |
926 | 930 | ||
927 | NL80211_ATTR_BSS_BASIC_RATES, | 931 | NL80211_ATTR_BSS_BASIC_RATES, |
928 | 932 | ||
@@ -1058,6 +1062,7 @@ enum nl80211_attrs { | |||
1058 | 1062 | ||
1059 | /* source-level API compatibility */ | 1063 | /* source-level API compatibility */ |
1060 | #define NL80211_ATTR_SCAN_GENERATION NL80211_ATTR_GENERATION | 1064 | #define NL80211_ATTR_SCAN_GENERATION NL80211_ATTR_GENERATION |
1065 | #define NL80211_ATTR_MESH_PARAMS NL80211_ATTR_MESH_CONFIG | ||
1061 | 1066 | ||
1062 | /* | 1067 | /* |
1063 | * Allow user space programs to use #ifdef on new attributes by defining them | 1068 | * Allow user space programs to use #ifdef on new attributes by defining them |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 6dc665a727c2..7283496c2d05 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1096,9 +1096,9 @@ struct cfg80211_pmksa { | |||
1096 | * @get_mpath: get a mesh path for the given parameters | 1096 | * @get_mpath: get a mesh path for the given parameters |
1097 | * @dump_mpath: dump mesh path callback -- resume dump at index @idx | 1097 | * @dump_mpath: dump mesh path callback -- resume dump at index @idx |
1098 | * | 1098 | * |
1099 | * @get_mesh_params: Put the current mesh parameters into *params | 1099 | * @get_mesh_config: Get the current mesh configuration |
1100 | * | 1100 | * |
1101 | * @update_mesh_params: Update mesh parameters on a running mesh. | 1101 | * @update_mesh_config: Update mesh parameters on a running mesh. |
1102 | * The mask is a bitfield which tells us which parameters to | 1102 | * The mask is a bitfield which tells us which parameters to |
1103 | * set, and which to leave alone. | 1103 | * set, and which to leave alone. |
1104 | * | 1104 | * |
@@ -1246,10 +1246,10 @@ struct cfg80211_ops { | |||
1246 | int (*dump_mpath)(struct wiphy *wiphy, struct net_device *dev, | 1246 | int (*dump_mpath)(struct wiphy *wiphy, struct net_device *dev, |
1247 | int idx, u8 *dst, u8 *next_hop, | 1247 | int idx, u8 *dst, u8 *next_hop, |
1248 | struct mpath_info *pinfo); | 1248 | struct mpath_info *pinfo); |
1249 | int (*get_mesh_params)(struct wiphy *wiphy, | 1249 | int (*get_mesh_config)(struct wiphy *wiphy, |
1250 | struct net_device *dev, | 1250 | struct net_device *dev, |
1251 | struct mesh_config *conf); | 1251 | struct mesh_config *conf); |
1252 | int (*update_mesh_params)(struct wiphy *wiphy, | 1252 | int (*update_mesh_config)(struct wiphy *wiphy, |
1253 | struct net_device *dev, u32 mask, | 1253 | struct net_device *dev, u32 mask, |
1254 | const struct mesh_config *nconf); | 1254 | const struct mesh_config *nconf); |
1255 | int (*join_mesh)(struct wiphy *wiphy, struct net_device *dev, | 1255 | int (*join_mesh)(struct wiphy *wiphy, struct net_device *dev, |