diff options
author | Hante Meuleman <meuleman@broadcom.com> | 2013-02-08 06:06:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-02-08 14:51:36 -0500 |
commit | 2880b86859967af710c72f7d34fb421a86a71e22 (patch) | |
tree | 8534e4b302a61cc08a84d7e39a38d98c969106cf /drivers/net/wireless/brcm80211/brcmfmac/dhd.h | |
parent | 4fe238b73240a10faf9689e4c37852492e16db52 (diff) |
brcmfmac: use brcmf_if::bssidx as index in interface list
Upon receiving an IF event from the firmware the interface
was created and stored on a list using the interface index.
With upcoming P2P feature the firmware will send a IF event
in which two interfaces have the same interface index. To
uniquely locate them on the list the bss index is now used.
Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/dhd.h')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/dhd.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd.h b/drivers/net/wireless/brcm80211/brcmfmac/dhd.h index e17f68aaba9e..7c78131d0a25 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/dhd.h +++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd.h | |||
@@ -512,7 +512,7 @@ struct brcmf_cfg80211_vif; | |||
512 | * @vif: points to cfg80211 specific interface information. | 512 | * @vif: points to cfg80211 specific interface information. |
513 | * @ndev: associated network device. | 513 | * @ndev: associated network device. |
514 | * @stats: interface specific network statistics. | 514 | * @stats: interface specific network statistics. |
515 | * @idx: interface index in device firmware. | 515 | * @ifidx: interface index in device firmware. |
516 | * @bssidx: index of bss associated with this interface. | 516 | * @bssidx: index of bss associated with this interface. |
517 | * @mac_addr: assigned mac address. | 517 | * @mac_addr: assigned mac address. |
518 | * @pend_8021x_cnt: tracks outstanding number of 802.1x frames. | 518 | * @pend_8021x_cnt: tracks outstanding number of 802.1x frames. |
@@ -525,7 +525,7 @@ struct brcmf_if { | |||
525 | struct net_device_stats stats; | 525 | struct net_device_stats stats; |
526 | struct work_struct setmacaddr_work; | 526 | struct work_struct setmacaddr_work; |
527 | struct work_struct multicast_work; | 527 | struct work_struct multicast_work; |
528 | int idx; | 528 | int ifidx; |
529 | s32 bssidx; | 529 | s32 bssidx; |
530 | u8 mac_addr[ETH_ALEN]; | 530 | u8 mac_addr[ETH_ALEN]; |
531 | atomic_t pend_8021x_cnt; | 531 | atomic_t pend_8021x_cnt; |
@@ -549,9 +549,9 @@ extern int brcmf_proto_hdrpull(struct brcmf_pub *drvr, u8 *ifidx, | |||
549 | struct sk_buff *rxp); | 549 | struct sk_buff *rxp); |
550 | 550 | ||
551 | extern int brcmf_net_attach(struct brcmf_if *ifp); | 551 | extern int brcmf_net_attach(struct brcmf_if *ifp); |
552 | extern struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, int ifidx, | 552 | extern struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bssidx, |
553 | s32 bssidx, char *name, u8 *mac_addr); | 553 | s32 ifidx, char *name, u8 *mac_addr); |
554 | extern void brcmf_del_if(struct brcmf_pub *drvr, int ifidx); | 554 | extern void brcmf_del_if(struct brcmf_pub *drvr, s32 bssidx); |
555 | extern u32 brcmf_get_chip_info(struct brcmf_if *ifp); | 555 | extern u32 brcmf_get_chip_info(struct brcmf_if *ifp); |
556 | 556 | ||
557 | #endif /* _BRCMF_H_ */ | 557 | #endif /* _BRCMF_H_ */ |