diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2015-07-09 17:03:57 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-14 19:34:57 -0700 |
commit | d309509f84725f99326cc73d3b00aae096b374ae (patch) | |
tree | 72bb1f630e72f218f2494918f01bf832e98724fa /drivers | |
parent | 8e8e9198920ddfa920191069ae02eba75d39e653 (diff) | |
download | linux-stable-d309509f84725f99326cc73d3b00aae096b374ae.tar.gz linux-stable-d309509f84725f99326cc73d3b00aae096b374ae.tar.bz2 linux-stable-d309509f84725f99326cc73d3b00aae096b374ae.zip |
staging: vt6656: 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.17+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/vt6656/main_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index f97323f19acf..af572d718135 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); |