Commit d309509f authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: check ieee80211_bss_conf bssid not NULL

Sometimes bssid can go null on failed association.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Cc: <stable@vger.kernel.org> # v3.17+
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e8e9198
...@@ -701,7 +701,7 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw, ...@@ -701,7 +701,7 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw,
priv->current_aid = conf->aid; 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); vnt_mac_set_bssid_addr(priv, (u8 *)conf->bssid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment