From: Thomas Pedersen Date: Tue, 24 Apr 2012 19:50:41 +0000 (-0700) Subject: ath6kl: check for sband existence when creating scan cmd X-Git-Tag: v3.5-rc1~101^2~6^2^2~84^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e2084a843a700089a479e0ffdf5876c7059411;p=pandora-kernel.git 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 Signed-off-by: Kalle Valo --- Reading git-diff-tree failed