summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2015-07-09 16:01:24 (GMT)
committerJonathan Cameron <jic23@kernel.org>2015-07-19 10:48:19 (GMT)
commit42e0bb4db0ee3727de8ec1e5e0eb5f2dd686be00 (patch)
treefc825f63e2e2100ab1c3841bcb7fb821ded5d786
parentf451957dafe712ab2cd4b7ca8ba9197798115fbe (diff)
downloadlinux-42e0bb4db0ee3727de8ec1e5e0eb5f2dd686be00.tar.xz
staging: vt6655: check ieee80211_bss_conf bssid not NULL
Sometimes bssid can go null on failed association. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Cc: <stable@vger.kernel.org> # v3.19+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6655/device_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index ed040fb..b0c8e23 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -1418,7 +1418,7 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw,
priv->current_aid = conf->aid;
- if (changed & BSS_CHANGED_BSSID) {
+ if (changed & BSS_CHANGED_BSSID && conf->bssid) {
unsigned long flags;
spin_lock_irqsave(&priv->lock, flags);