Commit graph

88 commits

Author SHA1 Message Date
Cy Schubert
f38dd26861 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-12-04 09:09:28 -08:00
Cy Schubert
06f6d32e63 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-10-29 08:47:52 -07:00
Cy Schubert
d2399d0b08 net/hostapd-devel: Sync driver_bsd.c with base system
Replace driver_bsd.c with the one from src. It utilizes facilities
and features already in FreeBSD.
2024-09-13 16:05:28 -07:00
Cy Schubert
1d0a9a7192 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-09-04 09:03:51 -07:00
Cy Schubert
00069b087b net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-07-21 06:06:31 -07:00
Cy Schubert
2509c7f3e7 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-07-18 14:01:13 -07:00
Cy Schubert
38b8db5089 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-06-26 09:33:40 -07:00
Cy Schubert
d956f75e78 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-06-03 07:51:49 -07:00
Cy Schubert
9b3a778da5 net/hostapd-devel: Fix 15-CURRENT 108de784513d build
On FreeBSD systems without 108de784513d the old definition will be used
while on 108de784513d and newer the duplicate case will be removed.

Obtained from:	src 676041c41ba5
Discussed with:	imp
2024-06-01 22:32:44 -07:00
Cy Schubert
e4ea758524 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-05-13 08:50:35 -07:00
Cy Schubert
0f98a441df net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-04-11 09:37:04 -07:00
Cy Schubert
0cc4ef1444 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-03-28 13:54:02 -07:00
Cy Schubert
2dc822b9e7 net/hostapd*: Work around lack of MLME support
hostap MLME uses Linux data structures and definitions not available
in FreeBSD. The ability for hostapd to select the frequency (channel)
depends Linux MLME, though strictly it's not required. Work around the
Linux MLME requirement to configure device frequency.

The detailed description is: hostapd will only set the channel (frequency)
when Linux MLME is configured. Enabling NEED_AP_MLME will result in
numerous build errors due do Linux data structures and definitions not
available under FreeBSD. The code to set the frequency from the selected
channel is only within the NEED_AP_MLME code path because without MLME,
hostapd_get_hw_features() is an inline that always returns -1 whereas with
MLME hostapd_get_hw_features() will obtain hardware features from the
kernel. Until such time we simply set the frequency as configured.

PR:		276375
MFH:		2024Q1
2024-03-04 08:44:36 -08:00
Cy Schubert
07c8d8577b net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-02-22 20:02:45 -08:00
Cy Schubert
85160acfac net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-02-06 16:41:21 -08:00
Muhammad Moinur Rahman
b5228942cd net/hostapd-devel: Sanitize MANPREFIX
Approved by:    portmgr (blanket)
2024-01-22 17:52:31 +01:00
Cy Schubert
34af590f7c net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2024-01-03 08:41:11 -08:00
Cy Schubert
311cf05b5e net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-12-05 21:54:09 -08:00
Cy Schubert
9ecd0daabf net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-11-14 12:08:13 -08:00
Cy Schubert
42ad49fd15 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-10-30 14:22:39 -07:00
Cy Schubert
80919a037c net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-10-10 19:50:51 -07:00
Cy Schubert
dd55881662 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-09-26 14:45:15 -07:00
R. Christian McDonald
92b2d8e1bf net/hostapd-devel: wpa: Enable receiving priority tagged (VID 0) frames
Certain internet service providers transmit vlan 0 priority tagged
EAPOL frames from the ONT towards the residential gateway. VID 0
should be ignored, and the frame processed according to the priority
set in the 802.1P bits and the encapsulated EtherType (i.e. EAPOL).

The pcap filter utilized by l2_packet is inadquate for this use case.

Here we modify the pcap filter to accept both unencapsulated and
encapsulated (with VLAN 0) EAPOL EtherTypes. This preserves the
original filter behavior while also matching on encapsulated EAPOL.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
Reviewed by:    cy
Obtained from:	src bb5d6d14d81b
PR:             273696
MFH:		2023Q3
2023-09-11 22:51:32 -07:00
Cy Schubert
2150c312db net/hostapd-devel: Fix uninitialized packet pointer on error
The packet pointer (called packet) will remain uninitialized when
pcap_next_ex() returns an error. This occurs when the wlan
interface is shut down using ifconfig destroy. Adding a NULL
assignment to packet duplicates what pcap_next() does.

The reason we use pcap_next_ex() in this instance is because with
pacp_next() when we receive a null pointer if there was an error
or if no packets were read. With pcap_next_ex() we can differentiate
between an error and legitimately no packets were received.

PR:             270649, 273696
Obtained from:	src 953efa5b200f
Reported by:    Robert Morris <rtm@lcs.mit.edu>
MFH:		2023Q3
2023-09-11 22:51:19 -07:00
Cy Schubert
1da2ce685a net/hostapd-devel: Rename patch to current patch naming standard 2023-09-11 22:51:03 -07:00
Cy Schubert
8668ee8741 net/hostapd-devel: driver_bsd.c: backout upstream IFF_ change and add logging
This reverts the state to our old supplicant logic setting or clearing
IFF_UP if needed.  In addition this adds logging for the cases in which
we do (not) change the interface state.

Depending on testing this seems to help bringing WiFi up or not log
any needed changes (which would be the expected wpa_supplicant logic
now).  People should look out for ``(changed)`` log entries (at least
if debugging the issue; this way we will at least have data points).

There is a hypothesis still pondered that the entire IFF_UP toggling
only exploits a race in net80211 (see further discssussions for more
debugging and alternative solutions see D38508 and D38753).
That may also explain why the changes to the rc startup script [1]
only helped partially for some people to no longer see the
continuous CTRL-EVENT-SCAN-FAILED.

It is highly likely that we will want further changes and until
we know for sure that people are seeing ''(changed)'' events
this should stay local.  Should we need to upstream this we'll
likely need #ifdef __FreeBSD__ around this code.

PR:		273696
Obtained from:	src bfb202c4554a
MFH:		2023Q3
2023-09-11 22:50:56 -07:00
Cy Schubert
f20782ea4e net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-09-05 11:30:20 -07:00
Cy Schubert
d2673ea9d8 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-08-28 09:35:29 -07:00
Cy Schubert
608f0e18a0 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-07-31 09:38:10 -07:00
Cy Schubert
321e93eeed net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-06-27 19:31:09 -07:00
Cy Schubert
7bd037cc7e net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-06-06 11:35:43 -07:00
Cy Schubert
c171081d45 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-05-30 19:53:25 -07:00
Cy Schubert
f004a9596f net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-05-08 13:43:18 -07:00
Cy Schubert
5a61644939 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-05-02 07:40:03 -07:00
Cy Schubert
bca9367940 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-04-17 14:28:45 -07:00
Cy Schubert
b9309beb1f net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-03-31 17:04:17 -07:00
Cy Schubert
1398aa215c net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-03-17 20:17:30 -07:00
Cy Schubert
e57f80d4b0 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-02-21 08:08:48 -08:00
Cy Schubert
8f3c7b56f3 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-02-15 11:29:14 -08:00
Cy Schubert
2c1350d6a5 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-01-17 13:12:15 -08:00
Cy Schubert
e9f5ae2916 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2023-01-03 08:56:29 -08:00
Cy Schubert
7f766b1525 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2022-12-19 11:23:30 -08:00
Cy Schubert
67791e2c87 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2022-11-17 18:33:45 -08:00
Cy Schubert
164c0dac2f net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2022-10-17 11:20:14 -07:00
Cy Schubert
ad350fa40d net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2022-10-11 07:30:58 -07:00
Cy Schubert
3f457d278c net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2022-10-02 16:32:07 -07:00
Cy Schubert
9800f0424d net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2022-09-11 07:41:43 -07:00
Stefan Eßer
fb16dfecae Remove WWW entries moved into port Makefiles
Commit b7f05445c0 has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2022-09-07 23:58:51 +02:00
Stefan Eßer
b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00
Cy Schubert
dd50789d80 net/hostapd-devel: Update to the latest GH commit
Update to the latest w1.fi commit, proxied through my GH account.
2022-08-28 14:16:43 -07:00