]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: brcm80211: only allow one call to add_interface callback
authorArend van Spriel <arend@broadcom.com>
Sun, 2 Oct 2011 17:14:34 +0000 (10:14 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 23:16:48 +0000 (16:16 -0700)
commit683fbb42396106974c315897d8d379f9e7b8ee40
treedd52ecf82b7a5d8d5144e9f83336d5bde5b8d6b0
parent71e233a2abc11a8b4263e4883e90f9fbe01fd806
staging: brcm80211: only allow one call to add_interface callback

The driver only supports one network interface to be associated
with it. Only for the first call it does actually something. For
subsequent calls it does return -ENODEV error code.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/mac80211_if.c