Skip to content

Commit

Permalink
staging: brcm80211: remove warning introduced by rfkill implementation
Browse files Browse the repository at this point in the history
During rfkill implementation the content of wlc_radio_upd function
was removed for testing purposes only. This ended up in the patch
sent out. This commit restores the function content, which was the
only function calling static function wlc_radio_enable. This removes
the compilation warning observed.

Reviewed-by: Brett Rudley <brudley@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Arend van Spriel authored and Greg Kroah-Hartman committed Feb 18, 2011
1 parent cf60191 commit 77919fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/staging/brcm80211/brcmsmac/wlc_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2311,6 +2311,11 @@ void wlc_radio_mpc_upd(struct wlc_info *wlc)
*/
static void wlc_radio_upd(struct wlc_info *wlc)
{
if (wlc->pub->radio_disabled) {
wlc_radio_disable(wlc);
} else {
wlc_radio_enable(wlc);
}
}

/* maintain LED behavior in down state */
Expand Down

0 comments on commit 77919fd

Please sign in to comment.