ath6kl: check for sband existence when creating scan cmd
authorThomas Pedersen <c_tpeder@qca.qualcomm.com>
Tue, 24 Apr 2012 19:50:41 +0000 (12:50 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 25 Apr 2012 06:36:00 +0000 (09:36 +0300)
commit03e2084a843a700089a479e0ffdf5876c7059411
treee5b41aa17b6c17712a81d9f85d43d2967fad9b68
parent1560ac7d304fdbe603e2fe9cf9564dc81dcccc98
ath6kl: check for sband existence when creating scan cmd

The patch "ath6kl: support fw reporting phy capabilities" gave the
firmware the ability to disable certain wiphy supported bands. Check if
this is the case in ath6kl_wmi_beginscan_cmd to avoid dereferencing a
NULL pointer.

kvalo: change the patch so that there's no code between declarations

Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/wmi.c