From patchwork Fri Jul 11 00:01:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eliad Peller X-Patchwork-Id: 4528971 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 07E6DBEEAA for ; Fri, 11 Jul 2014 00:02:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B336201C0 for ; Fri, 11 Jul 2014 00:02:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E47F2015E for ; Fri, 11 Jul 2014 00:02:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751552AbaGKACG (ORCPT ); Thu, 10 Jul 2014 20:02:06 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:36213 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751499AbaGKACE (ORCPT ); Thu, 10 Jul 2014 20:02:04 -0400 Received: by mail-wg0-f43.google.com with SMTP id b13so288463wgh.26 for ; Thu, 10 Jul 2014 17:02:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WWkNk3qV5tI6hu85dpErTLSFyo2CAsvJeertXgBjVcc=; b=RKvRQQideNFrA9kzqqJw47amUarMbGIQxudeePjW8+331JTl0w3yXLHWO5ZAnDOs5l qbweziWD1O+602zdqR1r8lhO6bKy08p3WPblMhM/ddbBD7uio8FL59YW8KVRhTpAHRKi Poty29gOsWRvxme4P15A1Db5HJ/9Oi7E3HRFYzGyvS7mzp3QgHHyc+UTTX3v0FtCsuXO DzPr3EV7p9MgPTN4KiSADzS3okOal/YfIPKSr9qHPxuC1iGsYsCM63QawNIUntUj417G kmNIu2NJSY2iKTJ57D7+iHkQH90iubOg5STk6SiEISBf5QnvxFd8r5m2uM0qK0FHwJ02 VfGw== X-Gm-Message-State: ALoCoQlErsqHkhRy4xIVGPxcCYi9b30SZ38ciZAWgtDf9/WYPOU4Oq6mtyDbKqdiTsgmidKJWXbV X-Received: by 10.194.243.200 with SMTP id xa8mr20022712wjc.97.1405036921738; Thu, 10 Jul 2014 17:02:01 -0700 (PDT) Received: from localhost.localdomain (46-116-157-102.bb.netvision.net.il. [46.116.157.102]) by mx.google.com with ESMTPSA id 19sm1426848wjz.3.2014.07.10.17.01.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Jul 2014 17:02:01 -0700 (PDT) From: Eliad Peller To: "John W. Linville" Cc: Subject: [PATCH 05/14] wlcore: add smart config definitions Date: Fri, 11 Jul 2014 03:01:30 +0300 Message-Id: <1405036899-27396-6-git-send-email-eliad@wizery.com> X-Mailer: git-send-email 1.8.5.1.109.g3d252a9 In-Reply-To: <1405036899-27396-1-git-send-email-eliad@wizery.com> References: <1405036899-27396-1-git-send-email-eliad@wizery.com> 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.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Add definitions for the smart config commands. Signed-off-by: Eliad Peller --- drivers/net/wireless/ti/wl18xx/cmd.h | 14 ++++++++++++++ drivers/net/wireless/ti/wlcore/cmd.h | 3 +++ 2 files changed, 17 insertions(+) diff --git a/drivers/net/wireless/ti/wl18xx/cmd.h b/drivers/net/wireless/ti/wl18xx/cmd.h index 6687d10..03b746b 100644 --- a/drivers/net/wireless/ti/wl18xx/cmd.h +++ b/drivers/net/wireless/ti/wl18xx/cmd.h @@ -45,6 +45,20 @@ struct wl18xx_cmd_channel_switch { u8 padding[2]; } __packed; +struct wl18xx_cmd_smart_config_start { + struct wl1271_cmd_header header; + + __le32 group_id_bitmask; +} __packed; + +struct wl18xx_cmd_smart_config_set_group_key { + struct wl1271_cmd_header header; + + __le32 group_id; + + u8 key[16]; +} __packed; + int wl18xx_cmd_channel_switch(struct wl1271 *wl, struct wl12xx_vif *wlvif, struct ieee80211_channel_switch *ch_switch); diff --git a/drivers/net/wireless/ti/wlcore/cmd.h b/drivers/net/wireless/ti/wlcore/cmd.h index 6788d73..ca6a28b 100644 --- a/drivers/net/wireless/ti/wlcore/cmd.h +++ b/drivers/net/wireless/ti/wlcore/cmd.h @@ -170,6 +170,9 @@ enum wl1271_commands { /* start of 18xx specific commands */ CMD_DFS_CHANNEL_CONFIG = 60, + CMD_SMART_CONFIG_START = 61, + CMD_SMART_CONFIG_STOP = 62, + CMD_SMART_CONFIG_SET_GROUP_KEY = 63, MAX_COMMAND_ID = 0xFFFF, };