From: Howard Chu <hyc@symas.com>
To: "Luis R. Rodriguez" <mcgrof@winlab.rutgers.edu>
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH] compat-2.6: enable ath9k
Date: Thu, 28 Aug 2008 00:37:44 -0700 [thread overview]
Message-ID: <48B655C8.9020500@symas.com> (raw)
In-Reply-To: <48AF209A.4080805@symas.com>
This patch enables building the wireless-testing ath9k driver with the
compat-wireless tarball at
http://www.orbit-lab.org/kernel/compat-wireless-2.6/2008/08/compat-wireless-2008-08-06.tar.bz2
In addition to applying this patch, you must also copy the
drivers/net/wireless/ath9k directory from the wireless-testing image into the
compat-wireless tree. Just posting this for posterity since it seems that it
won't be needed for much longer.
Signed-off-by: Howard Chu <hyc@symas.com>
---
diff -wur compat-wireless-2008-08-06/config.mk
compat-wireless-2008-08-06.N/config.mk
--- compat-wireless-2008-08-06/config.mk 2008-07-17 21:11:03.000000000 -0700
+++ compat-wireless-2008-08-06.N/config.mk 2008-08-27 23:17:22.000000000 -0700
@@ -72,6 +72,8 @@
CONFIG_ATH5K=m
CONFIG_ATH5K_DEBUG=n
+CONFIG_ATH9K=m
+
# Required for older kernels which still use this flag.
CONFIG_IWLWIFI=m
Only in compat-wireless-2008-08-06.N/drivers/net/wireless: ath9k
diff -wur compat-wireless-2008-08-06/drivers/net/wireless/Makefile
compat-wireless-2008-08-06.N/drivers/net/wireless/Makefile
--- compat-wireless-2008-08-06/drivers/net/wireless/Makefile 2008-07-29
21:11:04.000000000 -0700
+++ compat-wireless-2008-08-06.N/drivers/net/wireless/Makefile 2008-08-27
23:17:48.000000000 -0700
@@ -29,5 +29,6 @@
obj-$(CONFIG_P54_COMMON) += p54/
obj-$(CONFIG_ATH5K) += ath5k/
+obj-$(CONFIG_ATH9K) += ath9k/
obj-$(CONFIG_MAC80211_HWSIM) += mac80211_hwsim.o
diff -wur compat-wireless-2008-08-06/include/net/compat.h
compat-wireless-2008-08-06.N/include/net/compat.h
--- compat-wireless-2008-08-06/include/net/compat.h 2008-08-05
16:47:29.000000000 -0700
+++ compat-wireless-2008-08-06.N/include/net/compat.h 2008-08-27
23:57:32.000000000 -0700
@@ -784,6 +784,53 @@
int register_rfkill_notifier(struct notifier_block *nb);
int unregister_rfkill_notifier(struct notifier_block *nb);
+/* From include/linux/list.h */
+static inline void __list_cut_position(struct list_head *list,
+ struct list_head *head, struct list_head *entry)
+{
+ struct list_head *new_first = entry->next;
+ list->next = head->next;
+ list->next->prev = list;
+ list->prev = entry;
+ entry->next = list;
+ head->next = new_first;
+ new_first->prev = head;
+}
+static inline void list_cut_position(struct list_head *list,
+ struct list_head *head, struct list_head *entry)
+{
+ if (list_empty(head))
+ return;
+ if (list_is_singular(head) &&
+ (head->next != entry && head != entry))
+ return;
+ if (entry == head)
+ INIT_LIST_HEAD(list);
+ else
+ __list_cut_position(list, head, entry);
+}
+static inline void __list_splice2(const struct list_head *list,
+ struct list_head *prev,
+ struct list_head *next)
+{
+ struct list_head *first = list->next;
+ struct list_head *last = list->prev;
+
+ first->prev = prev;
+ prev->next = first;
+
+ last->next = next;
+ next->prev = last;
+}
+static inline void list_splice_tail_init(struct list_head *list,
+ struct list_head *head)
+{
+ if (!list_empty(list)) {
+ __list_splice2(list, head->prev, head);
+ INIT_LIST_HEAD(list);
+ }
+}
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)) */
#endif /* LINUX_26_COMPAT_H */
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
next prev parent reply other threads:[~2008-08-28 7:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-22 20:24 compat-2.6: ath9k driver Howard Chu
2008-08-28 7:37 ` Howard Chu [this message]
2008-08-28 21:25 ` [PATCH] compat-2.6: enable ath9k Luis R. Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48B655C8.9020500@symas.com \
--to=hyc@symas.com \
--cc=linux-wireless@vger.kernel.org \
--cc=mcgrof@winlab.rutgers.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).