diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-08-27 13:26:54 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-27 19:27:07 +0200 |
commit | a621fa4d6a7fdf9d34938d2e129a72624833eeeb (patch) | |
tree | 1b15e9fabbec3b2bdf04f5cd60526c0154a0dcc1 /net/mac80211/iface.c | |
parent | cfg80211: allow changing port control protocol (diff) | |
download | linux-a621fa4d6a7fdf9d34938d2e129a72624833eeeb.tar.xz linux-a621fa4d6a7fdf9d34938d2e129a72624833eeeb.zip |
mac80211: allow changing port control protocol
Some vendor specified mechanisms for 802.1X-style
functionality use a different protocol than EAP
(even if EAP is vendor-extensible). Support this
in mac80211 via the cfg80211 API for it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 9369710cc65b..810e6764d04f 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -855,6 +855,9 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata, sdata->dev->netdev_ops = &ieee80211_dataif_ops; sdata->wdev.iftype = type; + sdata->control_port_protocol = cpu_to_be16(ETH_P_PAE); + sdata->control_port_no_encrypt = false; + /* only monitor differs */ sdata->dev->type = ARPHRD_ETHER; |