summaryrefslogtreecommitdiff
path: root/net-mgmt/bsd-airtools/files/patch-dstumbler::main.c
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2003-10-02 20:55:58 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2003-10-02 20:55:58 +0000
commit1cf501d6f87b43d3b20cdc1df1942dccff3796bd (patch)
tree888348323662d1fceb365259a7bc1b95e8e8d3f1 /net-mgmt/bsd-airtools/files/patch-dstumbler::main.c
parent. s:NO_CDROM:RESTRICTED: as neither the distfiles nor the packages should (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_9_0'.release/4.9.0
Notes
Notes: svn path=/head/; revision=90063 svn path=/tags/RELEASE_4_9_0/; revision=90064; tag=release/4.9.0
Diffstat (limited to 'net-mgmt/bsd-airtools/files/patch-dstumbler::main.c')
-rw-r--r--net-mgmt/bsd-airtools/files/patch-dstumbler::main.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/net-mgmt/bsd-airtools/files/patch-dstumbler::main.c b/net-mgmt/bsd-airtools/files/patch-dstumbler::main.c
deleted file mode 100644
index abdeda1376e8..000000000000
--- a/net-mgmt/bsd-airtools/files/patch-dstumbler::main.c
+++ /dev/null
@@ -1,50 +0,0 @@
---- dstumbler/main.c.orig Tue Feb 26 01:16:07 2002
-+++ dstumbler/main.c Mon Jul 21 13:26:23 2003
-@@ -177,12 +177,24 @@
- /*
- * start the input/output handling loop
- */
--#define SETMONCHAN() \
-- if(monmode && chanlock && (apchange || apnew))\
-- {\
-- ch = aps[(aps_new && autosel) ? aps_new : aps_cur]->chan;\
-- setdebugchan(iface, ch);\
-+
-+static void __inline
-+SETMONCHAN(const char *iface)
-+{
-+ if (monmode && chanlock && (apchange || apnew))
-+ {
-+ int apidx = (aps_new && autosel) ? aps_new : aps_cur;
-+ /*
-+ * Don't set the channel if no IBSS/ESSes have been
-+ * discovered yet.
-+ */
-+ if (aps[apidx] != NULL) {
-+ ch = aps[apidx]->chan;
-+ setdebugchan(iface, ch);
-+ }
- }
-+}
-+
- void
- start_loop(const char *iface)
- {
-@@ -271,7 +283,7 @@
- */
- if(monmode && mon_next(iface) == -1)
- {
-- SETMONCHAN();
-+ SETMONCHAN(iface);
- smart_redraw();
- continue;
- }
-@@ -279,7 +291,7 @@
- parse_ap(iface);
- parse_node(iface);
-
-- SETMONCHAN();
-+ SETMONCHAN(iface);
- smart_redraw();
-
- apchange = apnew = 0;