From patchwork Thu Jul 9 16:01:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 6757201 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BEDBEC05AC for ; Thu, 9 Jul 2015 16:01:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06CEB2053B for ; Thu, 9 Jul 2015 16:01:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 206D62052D for ; Thu, 9 Jul 2015 16:01:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753386AbbGIQBn (ORCPT ); Thu, 9 Jul 2015 12:01:43 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:35649 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296AbbGIQBl (ORCPT ); Thu, 9 Jul 2015 12:01:41 -0400 Received: by wgjx7 with SMTP id x7so227345431wgj.2; Thu, 09 Jul 2015 09:01:39 -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=ZdLAeiKLlNfOjiXoEJOZfan+6KDatTFldqw4pO9OuF8=; b=V4gp1CPxGAbAinPRHBWnVEvZV2d78mAlpxNB5BjO9wAcLLfu72BcZUDIcqUDRyVjFL zRpaT9kgKLk/Ditil+GxmG96emCfW34o9q//yY0wJiZywydx3wKxet3tfDG0zL2ht0LE bwIqIPY5EE3O4sc0bL7nlx1uxmQS4iJ4jo/xLUxx6R1VJ07C6c2aMEQjOjdrPNU/a+AU hDaBZLDdUXEjbFQ2QmPMMxSvyLqewpS0HvPTUdZ+l+mtwLp5TkZSTbwWBOFXpN8dkjX/ mZbbnolrWpU/GKbZUmkQ/rudBbS1uVSbP4HeBDGL9BCxPdHOKApWR8LjBVqBzqR0GX6g DZEA== X-Received: by 10.181.13.230 with SMTP id fb6mr83272822wid.47.1436457699727; Thu, 09 Jul 2015 09:01:39 -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 m4sm9478511wjb.37.2015.07.09.09.01.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 09:01:38 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley , Subject: [PATCH 1/4] staging: vt6655: check ieee80211_bss_conf bssid not NULL Date: Thu, 9 Jul 2015 17:01:24 +0100 Message-Id: <1436457687-3113-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.19+ --- drivers/staging/vt6655/device_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index ed040fb..b0c8e23 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -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);