Skip to content

wifi: mac80211: refactor CMAC implementation

Chien Wong linux-wireless 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 0 repliesNew
  2. v35 patches 6 repliesSuperseded
  3. v26 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches6 repliesSuperseded

Changes in v4 from the cover letter

- Simplify error handling in CMAC functions.
- Use the newly defined constants in all available places.
- Unify output handling in ieee80211_aes_cmac().
- Coding style fixes.
- Remove cumbersome words in commit messages.
---

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5wifi: mac80211: fix CMAC functions not handling errorsnet/mac80211/aes_cmac.c net/mac80211/aes_cmac.h net/mac80211/wpa.c+61 -300 replies
2/5wifi: mac80211: add generic MMIE struct definesinclude/linux/ieee80211.h+13 -10 replies
3/5wifi: mac80211: utilize the newly defined CMAC constantsnet/mac80211/aes_cmac.c net/mac80211/aes_gmac.c net/mac80211/aes_gmac.h +1 more+25 -250 replies
4/5wifi: mac80211: refactor CMAC crypt functionsnet/mac80211/aes_cmac.c net/mac80211/aes_cmac.h net/mac80211/wpa.c+19 -500 replies
5/5wifi: mac80211: refactor CMAC packet handlersnet/mac80211/rx.c net/mac80211/tx.c net/mac80211/wpa.c +1 more+37 -1310 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/5] wifi: mac80211: refactor CMAC implementation

This series refactors the CMAC implementation in mac80211 to:
1. Add proper error handling
2. Remove duplication

Every patch in the patchset has been tested with mac80211_hwsim and the result looks good.
---
Changes in v4:
- Simplify error handling in CMAC functions.
- Use the newly defined constants in all available places.
- Unify output handling in ieee80211_aes_cmac().
- Coding style fixes.
- Remove cumbersome words in commit messages.
---
Changes in v3:
- Drop patch 1/6("wifi: mac80211: remove an unnecessary copy").
- Rework patch 2/6("wifi: mac80211: fix CMAC functions not handling errors") and patch 5/6("wifi: mac80211: refactor CMAC crypt functions") accordingly.
---
Changes in v2:
- Remove words in commit messages stating that only compile is tested.
- Remove Fixes line in patch 1/6.
---
Chien Wong (5):
wifi: mac80211: fix CMAC functions not handling errors
wifi: mac80211: add generic MMIE struct defines
wifi: mac80211: utilize the newly defined CMAC constants
wifi: mac80211: refactor CMAC crypt functions
wifi: mac80211: refactor CMAC packet handlers

 include/linux/ieee80211.h |  14 +++-
 net/mac80211/aes_cmac.c   |  60 +++++++---------
 net/mac80211/aes_cmac.h   |   7 +-
 net/mac80211/aes_gmac.c   |  22 +++---
 net/mac80211/aes_gmac.h   |   1 -
 net/mac80211/rx.c         |   6 +-
 net/mac80211/tx.c         |   6 +-
 net/mac80211/wpa.c        | 148 ++++++++------------------------------
 net/mac80211/wpa.h        |  10 ++-
 9 files changed, 96 insertions(+), 178 deletions(-)
Signature · 1 line
2.51.2