diff options
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index da557b0d0114..fcfa988a37a3 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -557,7 +557,7 @@ ieee80211_tx_h_select_key(struct ieee80211_tx_data *tx) | |||
557 | break; | 557 | break; |
558 | } | 558 | } |
559 | 559 | ||
560 | if (!skip_hw && | 560 | if (!skip_hw && tx->key && |
561 | tx->key->conf.flags & KEY_FLAG_UPLOADED_TO_HARDWARE) | 561 | tx->key->conf.flags & KEY_FLAG_UPLOADED_TO_HARDWARE) |
562 | info->control.hw_key = &tx->key->conf; | 562 | info->control.hw_key = &tx->key->conf; |
563 | } | 563 | } |