From patchwork Sat Sep 11 16:18:31 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 172342 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 o8BGJR0M011091 for ; Sat, 11 Sep 2010 16:19:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753883Ab0IKQTY (ORCPT ); Sat, 11 Sep 2010 12:19:24 -0400 Received: from server19320154104.serverpool.info ([193.201.54.104]:33784 "EHLO hauke-m.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753491Ab0IKQTL (ORCPT ); Sat, 11 Sep 2010 12:19:11 -0400 Received: from localhost (localhost [127.0.0.1]) by hauke-m.de (Postfix) with ESMTP id 6C6F485F9; Sat, 11 Sep 2010 18:19:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hauke-m.de Received: from hauke-m.de ([127.0.0.1]) by localhost (hauke-m.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pFRHQFLa4uRX; Sat, 11 Sep 2010 18:19:05 +0200 (CEST) Received: from localhost.localdomain (host-091-097-240-067.ewe-ip-backbone.de [91.97.240.67]) by hauke-m.de (Postfix) with ESMTPSA id D3B5B8619; Sat, 11 Sep 2010 18:18:55 +0200 (CEST) From: Hauke Mehrtens To: lrodriguez@atheros.com Cc: linux-wireless@vger.kernel.org, mcgrof@infradead.org, Hauke Mehrtens Subject: [PATCH 6/8] compat-wireless: Add warning if wext is deactivated Date: Sat, 11 Sep 2010 18:18:31 +0200 Message-Id: <1284221913-22455-8-git-send-email-hauke@hauke-m.de> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1284221913-22455-1-git-send-email-hauke@hauke-m.de> References: <1284221913-22455-1-git-send-email-hauke@hauke-m.de> 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]); Sat, 11 Sep 2010 16:19:27 +0000 (UTC) diff --git a/config.mk b/config.mk index b7ef1ce..464a769 100644 --- a/config.mk +++ b/config.mk @@ -196,6 +196,8 @@ endif #CONFIG_PCMCIA # autoconf.h ifdef CONFIG_WIRELESS_EXT CONFIG_CFG80211_WEXT=y +else #CONFIG_CFG80211_WEXT +$(warning "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m.") endif #CONFIG_WIRELESS_EXT ifneq ($(CONFIG_STAGING),) diff --git a/patches/10-add-wext-handlers-to-netdev.patch b/patches/10-add-wext-handlers-to-netdev.patch index 8a5c6e5..7f31c73 100644 --- a/patches/10-add-wext-handlers-to-netdev.patch +++ b/patches/10-add-wext-handlers-to-netdev.patch @@ -29,12 +29,18 @@ CONFIG_WIRELESS_EXT in compat-wireless. device_initialize(&rdev->wiphy.dev); rdev->wiphy.dev.class = &ieee80211_class; rdev->wiphy.dev.platform_data = rdev; -@@ -712,6 +708,8 @@ static int cfg80211_netdev_notifier_call +@@ -712,6 +708,14 @@ static int cfg80211_netdev_notifier_call wdev->sme_state = CFG80211_SME_IDLE; mutex_unlock(&rdev->devlist_mtx); #ifdef CONFIG_CFG80211_WEXT ++#ifdef CONFIG_WIRELESS_EXT + if (!dev->wireless_handlers) + dev->wireless_handlers = &cfg80211_wext_handler; ++#else ++ printk(KERN_WARNING "cfg80211: wext will not work because " ++ "kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools " ++ "using wext interface like iwconfig will not work.\n"); ++#endif wdev->wext.default_key = -1; wdev->wext.default_mgmt_key = -1; wdev->wext.connect.auth_type = NL80211_AUTHTYPE_AUTOMATIC;