Skip to content

Commit

Permalink
[PATCH] hostap: Use ARRAY_SIZE macro when appropriate
Browse files Browse the repository at this point in the history
A patch to use ARRAY_SIZE macro in the Host AP wireless driver.

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Ahmed S. Darwish authored and John W. Linville committed Feb 14, 2007
1 parent e7c04fd commit 51471d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/hostap/hostap.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
#define HOSTAP_H

#include <linux/ethtool.h>
#include <linux/kernel.h>

#include "hostap_wlan.h"
#include "hostap_ap.h"

static const long freq_list[] = { 2412, 2417, 2422, 2427, 2432, 2437, 2442,
2447, 2452, 2457, 2462, 2467, 2472, 2484 };
#define FREQ_COUNT (sizeof(freq_list) / sizeof(freq_list[0]))
#define FREQ_COUNT ARRAY_SIZE(freq_list)

/* hostap.c */

Expand Down

0 comments on commit 51471d3

Please sign in to comment.