Skip to content

Commit

Permalink
staging: vt6655: check ieee80211_bss_conf bssid not NULL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Malcolm Priestley authored and Jonathan Cameron committed Jul 19, 2015
1 parent f451957 commit 42e0bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 42e0bb4

Please sign in to comment.