diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/rxon.c | 12 | ||||
-rw-r--r-- | net/mac80211/offchannel.c | 2 | ||||
-rw-r--r-- | net/nfc/llcp/llcp.c | 5 |
3 files changed, 10 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/rxon.c b/drivers/net/wireless/iwlwifi/dvm/rxon.c index 10896393e5a0..2830ea290502 100644 --- a/drivers/net/wireless/iwlwifi/dvm/rxon.c +++ b/drivers/net/wireless/iwlwifi/dvm/rxon.c | |||
@@ -1012,12 +1012,12 @@ static void iwl_calc_basic_rates(struct iwl_priv *priv, | |||
1012 | * As a consequence, it's not as complicated as it sounds, just add | 1012 | * As a consequence, it's not as complicated as it sounds, just add |
1013 | * any lower rates to the ACK rate bitmap. | 1013 | * any lower rates to the ACK rate bitmap. |
1014 | */ | 1014 | */ |
1015 | if (IWL_RATE_11M_INDEX < lowest_present_ofdm) | 1015 | if (IWL_RATE_11M_INDEX < lowest_present_cck) |
1016 | ofdm |= IWL_RATE_11M_MASK >> IWL_FIRST_CCK_RATE; | 1016 | cck |= IWL_RATE_11M_MASK >> IWL_FIRST_CCK_RATE; |
1017 | if (IWL_RATE_5M_INDEX < lowest_present_ofdm) | 1017 | if (IWL_RATE_5M_INDEX < lowest_present_cck) |
1018 | ofdm |= IWL_RATE_5M_MASK >> IWL_FIRST_CCK_RATE; | 1018 | cck |= IWL_RATE_5M_MASK >> IWL_FIRST_CCK_RATE; |
1019 | if (IWL_RATE_2M_INDEX < lowest_present_ofdm) | 1019 | if (IWL_RATE_2M_INDEX < lowest_present_cck) |
1020 | ofdm |= IWL_RATE_2M_MASK >> IWL_FIRST_CCK_RATE; | 1020 | cck |= IWL_RATE_2M_MASK >> IWL_FIRST_CCK_RATE; |
1021 | /* 1M already there or needed so always add */ | 1021 | /* 1M already there or needed so always add */ |
1022 | cck |= IWL_RATE_1M_MASK >> IWL_FIRST_CCK_RATE; | 1022 | cck |= IWL_RATE_1M_MASK >> IWL_FIRST_CCK_RATE; |
1023 | 1023 | ||
diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c index 5abddfe3e101..a5379aea7d09 100644 --- a/net/mac80211/offchannel.c +++ b/net/mac80211/offchannel.c | |||
@@ -462,8 +462,6 @@ void ieee80211_roc_purge(struct ieee80211_sub_if_data *sdata) | |||
462 | list_move_tail(&roc->list, &tmp_list); | 462 | list_move_tail(&roc->list, &tmp_list); |
463 | roc->abort = true; | 463 | roc->abort = true; |
464 | } | 464 | } |
465 | |||
466 | ieee80211_start_next_roc(local); | ||
467 | mutex_unlock(&local->mtx); | 465 | mutex_unlock(&local->mtx); |
468 | 466 | ||
469 | list_for_each_entry_safe(roc, tmp, &tmp_list, list) { | 467 | list_for_each_entry_safe(roc, tmp, &tmp_list, list) { |
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c index 2df87056c6df..ec43914c92a9 100644 --- a/net/nfc/llcp/llcp.c +++ b/net/nfc/llcp/llcp.c | |||
@@ -985,15 +985,18 @@ static void nfc_llcp_recv_hdlc(struct nfc_llcp_local *local, | |||
985 | /* Remove skbs from the pending queue */ | 985 | /* Remove skbs from the pending queue */ |
986 | if (llcp_sock->send_ack_n != nr) { | 986 | if (llcp_sock->send_ack_n != nr) { |
987 | struct sk_buff *s, *tmp; | 987 | struct sk_buff *s, *tmp; |
988 | u8 n; | ||
988 | 989 | ||
989 | llcp_sock->send_ack_n = nr; | 990 | llcp_sock->send_ack_n = nr; |
990 | 991 | ||
991 | /* Remove and free all skbs until ns == nr */ | 992 | /* Remove and free all skbs until ns == nr */ |
992 | skb_queue_walk_safe(&llcp_sock->tx_pending_queue, s, tmp) { | 993 | skb_queue_walk_safe(&llcp_sock->tx_pending_queue, s, tmp) { |
994 | n = nfc_llcp_ns(s); | ||
995 | |||
993 | skb_unlink(s, &llcp_sock->tx_pending_queue); | 996 | skb_unlink(s, &llcp_sock->tx_pending_queue); |
994 | kfree_skb(s); | 997 | kfree_skb(s); |
995 | 998 | ||
996 | if (nfc_llcp_ns(s) == nr) | 999 | if (n == nr) |
997 | break; | 1000 | break; |
998 | } | 1001 | } |
999 | 1002 | ||