mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Add a patch that allows packet injection with capable wireless chipsets in
AHDEMO mode - Bump PORTREVISION PR: ports/160564 Submitted by: Jakub Lach <jakub_lach@mailplus.pl>
This commit is contained in:
parent
96cb6ede33
commit
af7cd7fef7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282623
2 changed files with 16 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= aircrack-ng
|
||||
DISTVERSION= 1.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-mgmt security
|
||||
MASTER_SITES= http://download.aircrack-ng.org/ \
|
||||
http://bsd-geek.de/FreeBSD/distfiles/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--- src/osdep/freebsd.c.orig 2008-06-10 02:55:09.000000000 +0700
|
||||
+++ src/osdep/freebsd.c 2008-08-11 20:01:53.000000000 +0700
|
||||
--- src/osdep/freebsd.c.orig 2008-02-26 19:12:19.000000000 +0100
|
||||
+++ src/osdep/freebsd.c 2011-09-29 20:35:48.000000000 +0200
|
||||
@@ -53,7 +53,9 @@
|
||||
unsigned char pf_buf[4096];
|
||||
unsigned char *pf_next;
|
||||
|
@ -47,15 +47,26 @@
|
|||
}
|
||||
|
||||
static int fbsd_set_channel(struct wif *wi, int chan)
|
||||
@@ -542,6 +554,7 @@
|
||||
@@ -389,7 +401,7 @@
|
||||
|
||||
memset(&ifr, 0, sizeof(ifr));
|
||||
strcpy(ifr.ifr_name, iface);
|
||||
- ifr.ifr_media = ifmr.ifm_current | IFM_IEEE80211_MONITOR;
|
||||
+ ifr.ifr_media = ifmr.ifm_current;
|
||||
if (ioctl(s, SIOCSIFMEDIA, &ifr) == -1)
|
||||
goto close_sock;
|
||||
|
||||
@@ -542,13 +554,17 @@
|
||||
/* setup private state */
|
||||
pf = wi_priv(wi);
|
||||
pf->pf_fd = fd;
|
||||
+#if __FreeBSD_version > 700018
|
||||
pf->pf_txparams.ibp_vers = IEEE80211_BPF_VERSION;
|
||||
pf->pf_txparams.ibp_len = sizeof(struct ieee80211_bpf_params) - 6;
|
||||
+ pf->pf_txparams.ibp_rate0 = 2; /* 1 MB/s XXX */
|
||||
+ pf->pf_txparams.ibp_try0 = 1; /* no retransmits */
|
||||
pf->pf_txparams.ibp_rate1 = 2; /* 1 MB/s XXX */
|
||||
@@ -549,6 +562,7 @@
|
||||
pf->pf_txparams.ibp_try1 = 1; /* no retransmits */
|
||||
pf->pf_txparams.ibp_flags = IEEE80211_BPF_NOACK;
|
||||
pf->pf_txparams.ibp_power = 100; /* nominal max */
|
||||
pf->pf_txparams.ibp_pri = WME_AC_VO; /* high priority */
|
||||
|
|
Loading…
Add table
Reference in a new issue