brcmfmac: restructure handling of IF event
authorArend van Spriel <arend@broadcom.com>
Thu, 15 Nov 2012 02:46:16 +0000 (18:46 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Nov 2012 19:28:57 +0000 (14:28 -0500)
commit3e0a97e1507c482d2299a6ff24e597c1316ba60a
treec05e911af1244d3ee863860a8f9f62c615d358a2
parentb522dd8071947be7f62e75d7de5b6b3de0d882f5
brcmfmac: restructure handling of IF event

The IF event need special care. It can be either an ADD, DEL, or
CHANGE. For an ADD we need to call brcmf_add_if() before the
event handler call. Upon a DEL we need to call brcmf_del_if()
after the event handler call. CHANGE does not require special
attention.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/fweh.c