Treat WEP like WPA: only offer if supported
authorkn <kn@openbsd.org>
Wed, 8 Mar 2023 11:52:20 +0000 (11:52 +0000)
committerkn <kn@openbsd.org>
Wed, 8 Mar 2023 11:52:20 +0000 (11:52 +0000)
commit3723117e0b069f0d5d8145bd0dcee2e17937e0d9
treeec879a88a81372080220108d394882c773642265
parent7c1e87a135a302fe789c0b6a9184628ec0243313
Treat WEP like WPA:  only offer if supported

WEP does not work with our bwfm(4) and it shows:
    Which network interface do you wish to configure? (or 'done') [bse0] bwfm0
    ifconfig: SIOCS80211NWKEY: Operation not supported by device
    Access point? (ESSID, 'any', list# or '?') [any] 2
    Security protocol? (O)pen, (W)EP, WPA-(P)SK [O]

Handle the error and disable (W)EP unless the driver has it.

No objections from anyone.
distrib/miniroot/install.sub