public inbox for wireless-regdb@lists.infradead.org
 help / color / mirror / Atom feed
* wireless-regdb key change broke crda tests after 37dcea0e6e5
@ 2024-02-06 11:25 Sergei Trofimovich
  2024-02-06 11:47 ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Sergei Trofimovich @ 2024-02-06 11:25 UTC (permalink / raw)
  To: linux-wireless; +Cc: wireless-regdb, Chen-Yu Tsai, Seth Forshee

Hi `crda` and `wireless-regdb` maintainers!

`nixpkgs` attempted to update to latest `wireless-regdb-2024.01.23` from
`2024.01.23` and got `crda` verification failures at
https://github.com/NixOS/nixpkgs/pull/286012:

    crda> make verify
    crda>   CHK  ...-wireless-regdb-2024.01.23/lib/crda/regulatory.bin
    crda> Database signature verification failed.
    crda> Invalid or empty regulatory file, note: a binary regulatory file should be used.
    crda> make: *** [Makefile:161: verify] Error 234

Bisect says the suspect is key change at done by https://git.kernel.org/pub/scm/linux/kernel/git/wens/wireless-regdb.git/commit/?id=37dcea0e6e5effb4228fe385e906edba3cbee389

"wireless-regdb: Update keys and maintainer information".

Both `git` `master` version of `crda` and `wireless-regdb` still fail
`crda`'s `make verify`.

Should `crda` key the key update as well?

Thanks!

-- 

  Sergei


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: wireless-regdb key change broke crda tests after 37dcea0e6e5
  2024-02-06 11:25 wireless-regdb key change broke crda tests after 37dcea0e6e5 Sergei Trofimovich
@ 2024-02-06 11:47 ` Johannes Berg
  2024-02-06 22:27   ` Sergei Trofimovich
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Berg @ 2024-02-06 11:47 UTC (permalink / raw)
  To: Sergei Trofimovich, linux-wireless
  Cc: wireless-regdb, Chen-Yu Tsai, Seth Forshee

Hi,

> "wireless-regdb: Update keys and maintainer information".
> 
> Both `git` `master` version of `crda` and `wireless-regdb` still fail
> `crda`'s `make verify`.
> 
> Should `crda` key the key update as well?

Maybe?

But perhaps the real question is if you should still be shipping crda?
It was last needed for kernel 4.15, and even the newest stable kernel
based on or before it (4.14) is now EOL ...

After that, we had the regdb loaded like a firmware file including the
signatures, so the whole crda isn't needed any more.

johannes


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: wireless-regdb key change broke crda tests after 37dcea0e6e5
  2024-02-06 11:47 ` Johannes Berg
@ 2024-02-06 22:27   ` Sergei Trofimovich
  2024-02-07  7:58     ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Sergei Trofimovich @ 2024-02-06 22:27 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, wireless-regdb, Chen-Yu Tsai, Seth Forshee

On Tue, 06 Feb 2024 12:47:35 +0100
Johannes Berg <johannes@sipsolutions.net> wrote:

> Hi,
> 
> > "wireless-regdb: Update keys and maintainer information".
> > 
> > Both `git` `master` version of `crda` and `wireless-regdb` still fail
> > `crda`'s `make verify`.
> > 
> > Should `crda` key the key update as well?  
> 
> Maybe?
> 
> But perhaps the real question is if you should still be shipping crda?
> It was last needed for kernel 4.15, and even the newest stable kernel
> based on or before it (4.14) is now EOL ...
> 
> After that, we had the regdb loaded like a firmware file including the
> signatures, so the whole crda isn't needed any more.

Great point! `nixpkgs` uses `crda` only as a `hostapd` depend and
looking at modern `hostapd` it does not use it at all. I'll spend some
time removing it downstream. Thank you!

-- 

  Sergei


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: wireless-regdb key change broke crda tests after 37dcea0e6e5
  2024-02-06 22:27   ` Sergei Trofimovich
@ 2024-02-07  7:58     ` Johannes Berg
  2024-02-07  9:19       ` Kalle Valo
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Berg @ 2024-02-07  7:58 UTC (permalink / raw)
  To: Sergei Trofimovich
  Cc: linux-wireless, wireless-regdb, Chen-Yu Tsai, Seth Forshee

On Tue, 2024-02-06 at 22:27 +0000, Sergei Trofimovich wrote:
> 
> Great point! `nixpkgs` uses `crda` only as a `hostapd` depend and
> looking at modern `hostapd` it does not use it at all. I'll spend some
> time removing it downstream. Thank you!

Note that hostapd never directly depended on crda, it just needs/wants
it to have the correct regulatory information in the kernel (crda puts
it there) after switching the country (hostapd can do that if possible)
and then hostapd retrieves the information.

But in any case, the whole step with crda is no longer needed if you
have the regulatory file (and possibly signature) in place, the firmware
will load them as firmware files.

johannes


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: wireless-regdb key change broke crda tests after 37dcea0e6e5
  2024-02-07  7:58     ` Johannes Berg
@ 2024-02-07  9:19       ` Kalle Valo
  2024-02-07  9:22         ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Kalle Valo @ 2024-02-07  9:19 UTC (permalink / raw)
  To: Johannes Berg
  Cc: Sergei Trofimovich, linux-wireless, wireless-regdb, Chen-Yu Tsai,
	Seth Forshee

Johannes Berg <johannes@sipsolutions.net> writes:

> On Tue, 2024-02-06 at 22:27 +0000, Sergei Trofimovich wrote:
>> 
>> Great point! `nixpkgs` uses `crda` only as a `hostapd` depend and
>> looking at modern `hostapd` it does not use it at all. I'll spend some
>> time removing it downstream. Thank you!
>
> Note that hostapd never directly depended on crda, it just needs/wants
> it to have the correct regulatory information in the kernel (crda puts
> it there) after switching the country (hostapd can do that if possible)
> and then hostapd retrieves the information.
>
> But in any case, the whole step with crda is no longer needed if you
> have the regulatory file (and possibly signature) in place, the firmware
> will load them as firmware files.

I assume you mean: the kernel will load them as firmware files.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: wireless-regdb key change broke crda tests after 37dcea0e6e5
  2024-02-07  9:19       ` Kalle Valo
@ 2024-02-07  9:22         ` Johannes Berg
  0 siblings, 0 replies; 6+ messages in thread
From: Johannes Berg @ 2024-02-07  9:22 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Sergei Trofimovich, linux-wireless, wireless-regdb, Chen-Yu Tsai,
	Seth Forshee

On Wed, 2024-02-07 at 11:19 +0200, Kalle Valo wrote:
> Johannes Berg <johannes@sipsolutions.net> writes:
> 
> > On Tue, 2024-02-06 at 22:27 +0000, Sergei Trofimovich wrote:
> > > 
> > > Great point! `nixpkgs` uses `crda` only as a `hostapd` depend and
> > > looking at modern `hostapd` it does not use it at all. I'll spend some
> > > time removing it downstream. Thank you!
> > 
> > Note that hostapd never directly depended on crda, it just needs/wants
> > it to have the correct regulatory information in the kernel (crda puts
> > it there) after switching the country (hostapd can do that if possible)
> > and then hostapd retrieves the information.
> > 
> > But in any case, the whole step with crda is no longer needed if you
> > have the regulatory file (and possibly signature) in place, the firmware
> > will load them as firmware files.
> 
> I assume you mean: the kernel will load them as firmware files.
> 
Haha, indeed, sorry.

johannes


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-07  9:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-06 11:25 wireless-regdb key change broke crda tests after 37dcea0e6e5 Sergei Trofimovich
2024-02-06 11:47 ` Johannes Berg
2024-02-06 22:27   ` Sergei Trofimovich
2024-02-07  7:58     ` Johannes Berg
2024-02-07  9:19       ` Kalle Valo
2024-02-07  9:22         ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox