From patchwork Wed Oct 13 22:21:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Stewart X-Patchwork-Id: 251541 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9DMmtvu023576 for ; Wed, 13 Oct 2010 22:49:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753628Ab0JMWtA (ORCPT ); Wed, 13 Oct 2010 18:49:00 -0400 Received: from smtp-out.google.com ([216.239.44.51]:38219 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753621Ab0JMWsy (ORCPT ); Wed, 13 Oct 2010 18:48:54 -0400 Received: from wpaz29.hot.corp.google.com (wpaz29.hot.corp.google.com [172.24.198.93]) by smtp-out.google.com with ESMTP id o9DMmrVm019360 for ; Wed, 13 Oct 2010 15:48:53 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1287010133; bh=xHgbp7CAmYSiX/bN53HopWUdvfI=; h=From:Date:Subject:To:Message-Id; b=ehrapZmfcx70A3bA1VViIc02lK+uZs+nVBASG1jhmt0qR+XnHxwYxtzb3yZ9twjdS zFK2K9zbJa9w0h2Q96MgQ== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=from:date:subject:to:message-id:x-system-of-record; b=HmNu48n1l/BUyi1uk/sXpet3Ui3k0wiI0xerq/OkEivHrdXnbnthq9UMN4+5A1oG7 znoTsVKF2H9XdCw4X1c4g== Received: from glenhelen.mtv.corp.google.com (glenhelen.mtv.corp.google.com [172.22.72.223]) by wpaz29.hot.corp.google.com with ESMTP id o9DMmq8q012845 for ; Wed, 13 Oct 2010 15:48:53 -0700 Received: by glenhelen.mtv.corp.google.com (Postfix, from userid 110058) id E3E5B2093C; Wed, 13 Oct 2010 15:48:51 -0700 (PDT) From: Paul Stewart Date: Wed, 13 Oct 2010 15:21:27 -0700 Subject: [PATCH 6/6] Work proc for bitrate changes To: linux-wireless@vger.kernel.org Message-Id: <20101013224851.E3E5B2093C@glenhelen.mtv.corp.google.com> X-System-Of-Record: true Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 13 Oct 2010 22:49:11 +0000 (UTC) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 5162303..e617b17 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -339,6 +339,16 @@ static void ieee80211_recalc_smps_work(struct work_struct *work) mutex_unlock(&local->iflist_mtx); } +static void ieee80211_rate_notify_work(struct work_struct *work) +{ + struct ieee80211_local *local = + container_of(work, struct ieee80211_local, rate_notify); + + mutex_lock(&local->iflist_mtx); + ieee80211_cqm_bitrate_notify(local); + mutex_unlock(&local->iflist_mtx); +} + #ifdef CONFIG_INET static int ieee80211_ifa_changed(struct notifier_block *nb, unsigned long data, void *arg) @@ -565,6 +575,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, INIT_WORK(&local->reconfig_filter, ieee80211_reconfig_filter); INIT_WORK(&local->recalc_smps, ieee80211_recalc_smps_work); + INIT_WORK(&local->rate_notify, ieee80211_rate_notify_work); local->smps_mode = IEEE80211_SMPS_OFF; INIT_WORK(&local->dynamic_ps_enable_work,