aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/iface.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-01-13 09:03:29 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:00:35 -0500
commit9aed3cc124343d92be6697e9af3928bdfe8eb03e (patch)
tree6a49a68422656790f944f37e3f34379b753d1dab /net/mac80211/iface.c
parent0c1aa495961f03c964b3287cf5800217cf6f2cee (diff)
nl80211: New command for adding extra IE(s) into management frames
A new nl80211 command, NL80211_CMD_SET_MGMT_EXTRA_IE, can be used to add arbitrary IE data into the end of management frames. The interface allows extra IEs to be configured for each management frame subtype, but only some of them (ProbeReq, ProbeResp, Auth, (Re)AssocReq, Deauth, Disassoc) are currently accepted in mac80211 implementation. This makes it easier to implement IEEE 802.11 extensions like WPS and FT that add IE(s) into some management frames. In addition, this can be useful for testing and experimentation purposes. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r--net/mac80211/iface.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 5d5a029228be..8dc2c2188d92 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -632,6 +632,13 @@ static void ieee80211_teardown_sdata(struct net_device *dev)
632 kfree(sdata->u.sta.assocreq_ies); 632 kfree(sdata->u.sta.assocreq_ies);
633 kfree(sdata->u.sta.assocresp_ies); 633 kfree(sdata->u.sta.assocresp_ies);
634 kfree_skb(sdata->u.sta.probe_resp); 634 kfree_skb(sdata->u.sta.probe_resp);
635 kfree(sdata->u.sta.ie_probereq);
636 kfree(sdata->u.sta.ie_proberesp);
637 kfree(sdata->u.sta.ie_auth);
638 kfree(sdata->u.sta.ie_assocreq);
639 kfree(sdata->u.sta.ie_reassocreq);
640 kfree(sdata->u.sta.ie_deauth);
641 kfree(sdata->u.sta.ie_disassoc);
635 break; 642 break;
636 case NL80211_IFTYPE_WDS: 643 case NL80211_IFTYPE_WDS:
637 case NL80211_IFTYPE_AP_VLAN: 644 case NL80211_IFTYPE_AP_VLAN: