Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:51143 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751429Ab0KDUvS (ORCPT ); Thu, 4 Nov 2010 16:51:18 -0400 Subject: Re: [RFC 07/15] cfg80211: add periodic scan results handler From: Johannes Berg To: Luciano Coelho Cc: linux-wireless@vger.kernel.org In-Reply-To: <1288612336-2830-8-git-send-email-luciano.coelho@nokia.com> References: <1288612336-2830-1-git-send-email-luciano.coelho@nokia.com> <1288612336-2830-8-git-send-email-luciano.coelho@nokia.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 04 Nov 2010 11:47:56 -0400 Message-ID: <1288885676.3659.5.camel@jlt3.sipsolutions.net> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, 2010-11-01 at 13:52 +0200, Luciano Coelho wrote: > +void cfg80211_periodic_results(struct cfg80211_periodic_request *req) > +{ > + WARN_ON(req != wiphy_to_dev(req->wiphy)->periodic_req); > + > + queue_work(cfg80211_wq, &wiphy_to_dev(req->wiphy)->periodic_wk); > +} why even pass it in? johannes