Skip to content

Commit

Permalink
staging: brcm80211: replace macro BCM_MSG_IFNAME_MAX with IFNAMSIZ
Browse files Browse the repository at this point in the history
In dhd.h the macro BCM_MSG_IFNAME_MAX was defined and used. As this
is used to carry the interface name we might as well use IFNAMSIZ
which results in the same size.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Arend van Spriel authored and Greg Kroah-Hartman committed Jul 5, 2011
1 parent 4aae86b commit 96a6062
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/brcm80211/brcmfmac/dhd.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ struct dhd_info;
#define DOT11_BSSTYPE_ANY 2
#define DOT11_MAX_DEFAULT_KEYS 4

#define BCM_MSG_IFNAME_MAX 16

#define WLC_EVENT_MSG_LINK 0x01
#define WLC_EVENT_MSG_FLUSHTXQ 0x02
#define WLC_EVENT_MSG_GROUP 0x04
Expand All @@ -151,7 +149,7 @@ typedef struct {
u32 auth_type;
u32 datalen;
u8 addr[ETH_ALEN];
char ifname[BCM_MSG_IFNAME_MAX];
char ifname[IFNAMSIZ];
} __attribute__((packed)) wl_event_msg_t;

typedef struct bcmeth_hdr {
Expand Down

0 comments on commit 96a6062

Please sign in to comment.