diff options
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 79fc98815da8..81a8e2a0b6aa 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -399,6 +399,7 @@ int ieee80211_add_virtual_monitor(struct ieee80211_local *local) | |||
399 | sdata->vif.type = NL80211_IFTYPE_MONITOR; | 399 | sdata->vif.type = NL80211_IFTYPE_MONITOR; |
400 | snprintf(sdata->name, IFNAMSIZ, "%s-monitor", | 400 | snprintf(sdata->name, IFNAMSIZ, "%s-monitor", |
401 | wiphy_name(local->hw.wiphy)); | 401 | wiphy_name(local->hw.wiphy)); |
402 | sdata->wdev.iftype = NL80211_IFTYPE_MONITOR; | ||
402 | 403 | ||
403 | sdata->encrypt_headroom = IEEE80211_ENCRYPT_HEADROOM; | 404 | sdata->encrypt_headroom = IEEE80211_ENCRYPT_HEADROOM; |
404 | 405 | ||
@@ -1285,6 +1286,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata, | |||
1285 | sdata->control_port_protocol = cpu_to_be16(ETH_P_PAE); | 1286 | sdata->control_port_protocol = cpu_to_be16(ETH_P_PAE); |
1286 | sdata->control_port_no_encrypt = false; | 1287 | sdata->control_port_no_encrypt = false; |
1287 | sdata->encrypt_headroom = IEEE80211_ENCRYPT_HEADROOM; | 1288 | sdata->encrypt_headroom = IEEE80211_ENCRYPT_HEADROOM; |
1289 | sdata->vif.bss_conf.idle = true; | ||
1288 | 1290 | ||
1289 | sdata->noack_map = 0; | 1291 | sdata->noack_map = 0; |
1290 | 1292 | ||