From patchwork Thu Jul 9 16:03:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 6757241 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D82CC9F38C for ; Thu, 9 Jul 2015 16:04:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1EA432054C for ; Thu, 9 Jul 2015 16:04:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2AF692054E for ; Thu, 9 Jul 2015 16:04:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751866AbbGIQEP (ORCPT ); Thu, 9 Jul 2015 12:04:15 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:33223 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751430AbbGIQEO (ORCPT ); Thu, 9 Jul 2015 12:04:14 -0400 Received: by wiwl6 with SMTP id l6so23163070wiw.0; Thu, 09 Jul 2015 09:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ZskX2VYLa+ya36d1x0IjdWAh6sErZN7lPd7Ki9Zkshk=; b=kZYl/2w7M1ilYolaVvMde5ylU4Iug2PGFd2ldNu8b23gyt85VGC8wTathIBJFd8Ues 8WLrNanFUkcP8+rrVbVIGeOjp/UAVrCENYlN4NPB4Lmqk2q65WyjBUEiWR0pl3HpB82M O1v5XLM+K4mSrp/BpjVuzg7vhVyHr+YWuiinh2R7aU3ufMsjiWK0BPd7hzAohbzZ28mO JZ3OMFFpq62auKpfJLKpO/kk8x2yrpmYI/TF2h01egyZWJkANvEcXfuKafjDFU/rJV/c xPWtlpCfv4t8egLqrCzUDGPSWb3vxY0wRKTpfMvYkM7kyjctL0dadosMQAoZbKDBrsym vG9A== X-Received: by 10.180.23.69 with SMTP id k5mr34089658wif.3.1436457853002; Thu, 09 Jul 2015 09:04:13 -0700 (PDT) Received: from tipsey.3.home (188.31.121.40.threembb.co.uk. [188.31.121.40]) by smtp.gmail.com with ESMTPSA id qq1sm9522497wjc.0.2015.07.09.09.04.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 09:04:12 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley , Subject: [PATCH] staging: vt6656: check ieee80211_bss_conf bssid not NULL Date: Thu, 9 Jul 2015 17:03:57 +0100 Message-Id: <1436457837-3259-1-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sometimes bssid can go null on failed association. Signed-off-by: Malcolm Priestley Cc: # v3.17+ --- drivers/staging/vt6656/main_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index f97323f..af572d7 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);