summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2015-07-09 17:03:57 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-03 09:28:59 -0700
commitc4fdcdb1689f93b8b048e09c03924e730dfad600 (patch)
tree32d132dd8ec9b996075a632f08162a9396253fd4
parent6ab8bb14ed9e6b7979da424bdafc959fd602c42a (diff)
staging: vt6656: check ieee80211_bss_conf bssid not NULL
commit d309509f84725f99326cc73d3b00aae096b374ae upstream. Sometimes bssid can go null on failed association. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6656/main_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c
index ab3ab84cb0a7..766fdcece074 100644
--- a/drivers/staging/vt6656/main_usb.c
+++ b/drivers/staging/vt6656/main_usb.c
@@ -701,7 +701,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)
vnt_mac_set_bssid_addr(priv, (u8 *)conf->bssid);