Skip to content
Snippets Groups Projects
Commit b26af930 authored by Colin Ian King's avatar Colin Ian King Committed by Johannes Berg
Browse files

mac80211: minstrel_ht: fix infinite loop because supported is not being shifted


Currently the for-loop will spin forever if variable supported is
non-zero because supported is never changed.  Fix this by adding in
the missing right shift of supported.

Addresses-Coverity: ("Infinite loop")
Fixes: 48cb3952 ("mac80211: minstrel_ht: improve rate probing for devices with static fallback")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190822122034.28664-1-colin.king@canonical.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent c76c9925
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment