diff options
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index 1b3304454356..3757298c5a60 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c | |||
@@ -465,8 +465,10 @@ static void ieee80211_sta_tx(struct net_device *dev, struct sk_buff *skb, | |||
465 | pkt_data = (struct ieee80211_tx_packet_data *) skb->cb; | 465 | pkt_data = (struct ieee80211_tx_packet_data *) skb->cb; |
466 | memset(pkt_data, 0, sizeof(struct ieee80211_tx_packet_data)); | 466 | memset(pkt_data, 0, sizeof(struct ieee80211_tx_packet_data)); |
467 | pkt_data->ifindex = sdata->dev->ifindex; | 467 | pkt_data->ifindex = sdata->dev->ifindex; |
468 | pkt_data->mgmt_iface = (sdata->type == IEEE80211_IF_TYPE_MGMT); | 468 | if (sdata->type == IEEE80211_IF_TYPE_MGMT) |
469 | pkt_data->do_not_encrypt = !encrypt; | 469 | pkt_data->flags |= IEEE80211_TXPD_MGMT_IFACE; |
470 | if (!encrypt) | ||
471 | pkt_data->flags |= IEEE80211_TXPD_DO_NOT_ENCRYPT; | ||
470 | 472 | ||
471 | dev_queue_xmit(skb); | 473 | dev_queue_xmit(skb); |
472 | } | 474 | } |