cfg80211: Add support to update connection parameters

Add functionality to update the connection parameters when in connected
state, so that driver/firmware uses the updated parameters for
subsequent roaming. This is for drivers that support internal BSS
selection and roaming. The new command does not change the current
association state, i.e., it can be used to update IE contents for future
(re)associations without causing an immediate disassociation or
reassociation with the current BSS.

This commit implements the required functionality for updating IEs for
(Re)Association Request frame only. Other parameters can be added in
future when required.

Signed-off-by: vamsi krishna <vamsin@qti.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
vamsi krishna
2016-10-27 16:51:11 +03:00
committed by Johannes Berg
parent 8ac6344865
commit 088e8df82f
5 changed files with 102 additions and 0 deletions

View File

@@ -490,6 +490,18 @@ static inline int rdev_connect(struct cfg80211_registered_device *rdev,
return ret;
}
static inline int
rdev_update_connect_params(struct cfg80211_registered_device *rdev,
struct net_device *dev,
struct cfg80211_connect_params *sme, u32 changed)
{
int ret;
trace_rdev_update_connect_params(&rdev->wiphy, dev, sme, changed);
ret = rdev->ops->update_connect_params(&rdev->wiphy, dev, sme, changed);
trace_rdev_return_int(&rdev->wiphy, ret);
return ret;
}
static inline int rdev_disconnect(struct cfg80211_registered_device *rdev,
struct net_device *dev, u16 reason_code)
{