diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-11-02 08:27:48 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-05 09:54:45 -0500 |
commit | f4e583c8935c6f52f9385ee7cfbea8f65c66a737 (patch) | |
tree | 84b709ae313211a2296adce2b4de569a63cbc43a /include | |
parent | ba350fbc53b5798104b3fc245bb3c3461a4ef8dc (diff) |
nl/cfg80211: add the NL80211_CMD_SET_MCAST_RATE command
This command triggers a new callback: set_mcast_rate(). It enables
the user to change the rate used to send multicast frames for vif
configured as IBSS or MESH_POINT
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 6 | ||||
-rw-r--r-- | include/uapi/linux/nl80211.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 8034a4268fcb..cee791fd4cff 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1545,6 +1545,9 @@ struct cfg80211_gtk_rekey_data { | |||
1545 | * to a merge. | 1545 | * to a merge. |
1546 | * @leave_ibss: Leave the IBSS. | 1546 | * @leave_ibss: Leave the IBSS. |
1547 | * | 1547 | * |
1548 | * @set_mcast_rate: Set the specified multicast rate (only if vif is in ADHOC or | ||
1549 | * MESH mode) | ||
1550 | * | ||
1548 | * @set_wiphy_params: Notify that wiphy parameters have changed; | 1551 | * @set_wiphy_params: Notify that wiphy parameters have changed; |
1549 | * @changed bitfield (see &enum wiphy_params_flags) describes which values | 1552 | * @changed bitfield (see &enum wiphy_params_flags) describes which values |
1550 | * have changed. The actual parameter values are available in | 1553 | * have changed. The actual parameter values are available in |
@@ -1749,6 +1752,9 @@ struct cfg80211_ops { | |||
1749 | struct cfg80211_ibss_params *params); | 1752 | struct cfg80211_ibss_params *params); |
1750 | int (*leave_ibss)(struct wiphy *wiphy, struct net_device *dev); | 1753 | int (*leave_ibss)(struct wiphy *wiphy, struct net_device *dev); |
1751 | 1754 | ||
1755 | int (*set_mcast_rate)(struct wiphy *wiphy, struct net_device *dev, | ||
1756 | int rate[IEEE80211_NUM_BANDS]); | ||
1757 | |||
1752 | int (*set_wiphy_params)(struct wiphy *wiphy, u32 changed); | 1758 | int (*set_wiphy_params)(struct wiphy *wiphy, u32 changed); |
1753 | 1759 | ||
1754 | int (*set_tx_power)(struct wiphy *wiphy, struct wireless_dev *wdev, | 1760 | int (*set_tx_power)(struct wiphy *wiphy, struct wireless_dev *wdev, |
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 4c5f6748ed7d..cbd2d6bb907a 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h | |||
@@ -578,6 +578,9 @@ | |||
578 | * station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON | 578 | * station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON |
579 | * is used for this. | 579 | * is used for this. |
580 | * | 580 | * |
581 | * @NL80211_CMD_SET_MCAST_RATE: Change the rate used to send multicast frames | ||
582 | * for IBSS or MESH vif. | ||
583 | * | ||
581 | * @NL80211_CMD_MAX: highest used command number | 584 | * @NL80211_CMD_MAX: highest used command number |
582 | * @__NL80211_CMD_AFTER_LAST: internal use | 585 | * @__NL80211_CMD_AFTER_LAST: internal use |
583 | */ | 586 | */ |
@@ -726,6 +729,8 @@ enum nl80211_commands { | |||
726 | 729 | ||
727 | NL80211_CMD_CONN_FAILED, | 730 | NL80211_CMD_CONN_FAILED, |
728 | 731 | ||
732 | NL80211_CMD_SET_MCAST_RATE, | ||
733 | |||
729 | /* add new commands above here */ | 734 | /* add new commands above here */ |
730 | 735 | ||
731 | /* used to define NL80211_CMD_MAX below */ | 736 | /* used to define NL80211_CMD_MAX below */ |