staging: wlan-ng: replace rate macros
authorLuke Koch <lu.ale.koch@gmail.com>
Thu, 20 Apr 2023 16:50:00 +0000 (18:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 May 2023 14:06:39 +0000 (16:06 +0200)
commit9fd3210602877d0909886387157386f65cfba415
tree14a26b6eb0fbbd718e1630094069725b19ed6a12
parentac9a78681b921877518763ba0e89202254349d1b
staging: wlan-ng: replace rate macros

Change p80211msg_dot11req_scan_results rate members to struct arrays
instead of individually numbered member structs.
Replace macros to set rates with loops to avoid checkpatch warning
and adhere to linux coding style.

Reported by checkpatch:

CHECK: Macro argument reuse 'N' - possible side-effects?

Signed-off-by: Luke Koch <lu.ale.koch@gmail.com>
Link: https://lore.kernel.org/r/ZEFtOH83frrrireN@kernelhacking.kernelhacking.example.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211metastruct.h
drivers/staging/wlan-ng/prism2mgmt.c