On Tue, Nov 02, 2021 at 05:26:17PM +0000, Klemens Nanni wrote:
> At least bwfm(4) does not support WEP:
> 
>       # ifconfig bwfm0 nwkey 12345          
>       ifconfig: SIOCS80211NWKEY: Operation not supported by device
>       # echo $?
>       0
> 
> ifconfig(8) must return non-zero in this case.
> 
> This is relevant for an upcoming installer fix, but also worth itself.
> 
> OK?

Yes, ok.

But regardless, this error should never happen.
It looks like bwfm(4) does support WEP but the C_WEP capability is missing
from ic_caps so net80211 believes WEP was not supported by this driver.

I don't think we have any supported wifi device that does not support WEP.
Even an(4) supports WEP!

> Index: ifconfig.c
> ===================================================================
> RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v
> retrieving revision 1.445
> diff -u -p -r1.445 ifconfig.c
> --- ifconfig.c        6 Oct 2021 06:14:08 -0000       1.445
> +++ ifconfig.c        2 Nov 2021 17:20:01 -0000
> @@ -2033,7 +2033,7 @@ setifnwkey(const char *val, int d)
>       }
>  
>       if (ioctl(sock, SIOCS80211NWKEY, (caddr_t)&nwkey) == -1)
> -             warn("SIOCS80211NWKEY");
> +             err("SIOCS80211NWKEY");
>  }
>  
>  /* ARGSUSED */
> 
> 

Reply via email to