diff options
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 3de1c39d03e5..9f85fca0b676 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1346,7 +1346,12 @@ struct cfg80211_gtk_rekey_data { | |||
1346 | * | 1346 | * |
1347 | * @add_station: Add a new station. | 1347 | * @add_station: Add a new station. |
1348 | * @del_station: Remove a station; @mac may be NULL to remove all stations. | 1348 | * @del_station: Remove a station; @mac may be NULL to remove all stations. |
1349 | * @change_station: Modify a given station. | 1349 | * @change_station: Modify a given station. Note that flags changes are not much |
1350 | * validated in cfg80211, in particular the auth/assoc/authorized flags | ||
1351 | * might come to the driver in invalid combinations -- make sure to check | ||
1352 | * them, also against the existing state! Also, supported_rates changes are | ||
1353 | * not checked in station mode -- drivers need to reject (or ignore) them | ||
1354 | * for anything but TDLS peers. | ||
1350 | * @get_station: get station information for the station identified by @mac | 1355 | * @get_station: get station information for the station identified by @mac |
1351 | * @dump_station: dump station callback -- resume dump at index @idx | 1356 | * @dump_station: dump station callback -- resume dump at index @idx |
1352 | * | 1357 | * |
@@ -1694,7 +1699,9 @@ struct cfg80211_ops { | |||
1694 | * regulatory domain no user regulatory domain can enable these channels | 1699 | * regulatory domain no user regulatory domain can enable these channels |
1695 | * at a later time. This can be used for devices which do not have | 1700 | * at a later time. This can be used for devices which do not have |
1696 | * calibration information guaranteed for frequencies or settings | 1701 | * calibration information guaranteed for frequencies or settings |
1697 | * outside of its regulatory domain. | 1702 | * outside of its regulatory domain. If used in combination with |
1703 | * WIPHY_FLAG_CUSTOM_REGULATORY the inspected country IE power settings | ||
1704 | * will be followed. | ||
1698 | * @WIPHY_FLAG_DISABLE_BEACON_HINTS: enable this if your driver needs to ensure | 1705 | * @WIPHY_FLAG_DISABLE_BEACON_HINTS: enable this if your driver needs to ensure |
1699 | * that passive scan flags and beaconing flags may not be lifted by | 1706 | * that passive scan flags and beaconing flags may not be lifted by |
1700 | * cfg80211 due to regulatory beacon hints. For more information on beacon | 1707 | * cfg80211 due to regulatory beacon hints. For more information on beacon |
@@ -3064,6 +3071,32 @@ void cfg80211_roamed(struct net_device *dev, | |||
3064 | const u8 *resp_ie, size_t resp_ie_len, gfp_t gfp); | 3071 | const u8 *resp_ie, size_t resp_ie_len, gfp_t gfp); |
3065 | 3072 | ||
3066 | /** | 3073 | /** |
3074 | * cfg80211_roamed_bss - notify cfg80211 of roaming | ||
3075 | * | ||
3076 | * @dev: network device | ||
3077 | * @bss: entry of bss to which STA got roamed | ||
3078 | * @req_ie: association request IEs (maybe be %NULL) | ||
3079 | * @req_ie_len: association request IEs length | ||
3080 | * @resp_ie: association response IEs (may be %NULL) | ||
3081 | * @resp_ie_len: assoc response IEs length | ||
3082 | * @gfp: allocation flags | ||
3083 | * | ||
3084 | * This is just a wrapper to notify cfg80211 of roaming event with driver | ||
3085 | * passing bss to avoid a race in timeout of the bss entry. It should be | ||
3086 | * called by the underlying driver whenever it roamed from one AP to another | ||
3087 | * while connected. Drivers which have roaming implemented in firmware | ||
3088 | * may use this function to avoid a race in bss entry timeout where the bss | ||
3089 | * entry of the new AP is seen in the driver, but gets timed out by the time | ||
3090 | * it is accessed in __cfg80211_roamed() due to delay in scheduling | ||
3091 | * rdev->event_work. In case of any failures, the reference is released | ||
3092 | * either in cfg80211_roamed_bss() or in __cfg80211_romed(), Otherwise, | ||
3093 | * it will be released while diconneting from the current bss. | ||
3094 | */ | ||
3095 | void cfg80211_roamed_bss(struct net_device *dev, struct cfg80211_bss *bss, | ||
3096 | const u8 *req_ie, size_t req_ie_len, | ||
3097 | const u8 *resp_ie, size_t resp_ie_len, gfp_t gfp); | ||
3098 | |||
3099 | /** | ||
3067 | * cfg80211_disconnected - notify cfg80211 that connection was dropped | 3100 | * cfg80211_disconnected - notify cfg80211 that connection was dropped |
3068 | * | 3101 | * |
3069 | * @dev: network device | 3102 | * @dev: network device |