|
@@ -8,6 +8,7 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <linux/ieee80211.h>
|
|
#include <linux/ieee80211.h>
|
|
|
|
+#include <net/cfg80211.h>
|
|
#include "ieee80211_i.h"
|
|
#include "ieee80211_i.h"
|
|
|
|
|
|
/* give usermode some time for retries in setting up the TDLS session */
|
|
/* give usermode some time for retries in setting up the TDLS session */
|
|
@@ -514,3 +515,19 @@ int ieee80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev,
|
|
mutex_unlock(&local->mtx);
|
|
mutex_unlock(&local->mtx);
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+void ieee80211_tdls_oper_request(struct ieee80211_vif *vif, const u8 *peer,
|
|
|
|
+ enum nl80211_tdls_operation oper,
|
|
|
|
+ u16 reason_code, gfp_t gfp)
|
|
|
|
+{
|
|
|
|
+ struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
|
|
|
|
+
|
|
|
|
+ if (vif->type != NL80211_IFTYPE_STATION || !vif->bss_conf.assoc) {
|
|
|
|
+ sdata_err(sdata, "Discarding TDLS oper %d - not STA or disconnected\n",
|
|
|
|
+ oper);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ cfg80211_tdls_oper_request(sdata->dev, peer, oper, reason_code, gfp);
|
|
|
|
+}
|
|
|
|
+EXPORT_SYMBOL(ieee80211_tdls_oper_request);
|