[PATCH] tests: ap_ciphers: read debugfs conf_flags if it exists

Jouni Malinen j at w1.fi
Sat Aug 1 12:55:59 PDT 2026


On Sat, Aug 01, 2026 at 10:04:13AM +0200, Johannes Berg wrote:
> The code here in the tests differentiates pairwise and
> group keys by the presence of the 'station' file in
> mac80211's key debugfs. This currently works because
> the code is only invoked on the client, where keys are
> in fact currently installed that way by mac80211. In
> other modes (IBSS, mesh, NAN) it wouldn't work, since
> GTKs are installed per STA as well.
> 
> Given the complexity of this difference in mac80211,
> I'm working on changing that, robbing the test of a
> way to differentiate pairwise and group keys. To still
> be able to differentiate, mac80211 will then expose a
> new 'conf_flags' file, where we can check the pairwise
> flag (bit 3) instead, if it exists.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list