brcmfmac: add role attribute to struct brcmf_if_event definition
authorArend van Spriel <arend@broadcom.com>
Fri, 5 Apr 2013 08:57:45 +0000 (10:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Apr 2013 19:28:43 +0000 (15:28 -0400)
According specification the IF event has an additional field indicating
the role or type of the interface for which this event is sent.

Reviewed-by: Piotr Haber <phaber@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd.h
drivers/net/wireless/brcm80211/brcmfmac/fweh.c

index ef5e3a92deb1e9daa6da82a8fbc0f9f190295338..5249c67b466ceabf3488f6e442da8ffd7a61f93d 100644 (file)
@@ -548,6 +548,7 @@ struct brcmf_if_event {
        u8 action;
        u8 flags;
        u8 bssidx;
+       u8 role;
 };
 
 /* forward declarations */
index 01d39a9481187c3857dc5533c8baa514cb877301..9672b994b6acf5a0fae9a32dc7c9ad24b1ea5ff4 100644 (file)
@@ -181,9 +181,9 @@ static void brcmf_fweh_handle_if_event(struct brcmf_pub *drvr,
        struct brcmf_if *ifp;
        int err = 0;
 
-       brcmf_dbg(EVENT, "action: %u idx: %u bsscfg: %u flags: %u\n",
-                 ifevent->action, ifevent->ifidx,
-                 ifevent->bssidx, ifevent->flags);
+       brcmf_dbg(EVENT, "action: %u idx: %u bsscfg: %u flags: %u role: %u\n",
+                 ifevent->action, ifevent->ifidx, ifevent->bssidx,
+                 ifevent->flags, ifevent->role);
 
        if (ifevent->ifidx >= BRCMF_MAX_IFS) {
                brcmf_err("invalid interface index: %u\n",