ath10k: improve vdev map handling
authorBen Greear <greearb@candelatech.com>
Tue, 12 Aug 2014 08:02:19 +0000 (11:02 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 14 Aug 2014 12:17:32 +0000 (15:17 +0300)
commita9aefb3b3761a55117c6d1a526ac0305c3be5f46
tree84d61e6821ef3b81ae682ba655057039d3d994c5
parentb7967dc79fbd32ef198b429b2597459a4130207f
ath10k: improve vdev map handling

Check vdev map has space before calling ffs,
fix invalid cleanup in failure to create vdev
case.

Open-code the BIT() logic since BIT does not properly
handle 64-bit bitfields and future patches will make
use of larger bitfields.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c