android_kernel_xiaomi_sm8350/net/wireless
Luis R. Rodriguez bcf4f99b7b cfg80211: propagate -ENOMEM during regulatory_init()
Calling kobject_uevent_env() can fail mainly due to out of
memory conditions. We do not want to continue during such
conditions so propagate that as well instead of letting
cfg80211 load as if everything is peachy.

Additionally lets clarify that when CRDA is not called during
cfg80211's initialization _and_ if the error is not an -ENOMEM
its because kobject_uevent_env() failed to call CRDA, not because
CRDA failed. For those who want to find out why we also let you
do so by enabling the kernel config CONFIG_CFG80211_REG_DEBUG --
you'll get an actual stack trace.

So for now we'll treat non -ENOMEM kobject_uevent_env() failures as
non fatal during cfg80211's initialization.

CC: Greg KH <greg@kroah.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-02-27 14:52:55 -05:00
..
core.c cfg80211: rename cfg80211_drv_mutex to cfg80211_mutex 2009-02-27 14:52:55 -05:00
core.h cfg80211: rename cfg80211_drv_mutex to cfg80211_mutex 2009-02-27 14:52:55 -05:00
Kconfig cfg80211/mac80211: Add 802.11d support 2008-11-25 16:41:26 -05:00
lib80211_crypt_ccmp.c lib80211: absorb crypto bits from net/ieee80211 2008-11-21 11:08:17 -05:00
lib80211_crypt_tkip.c lib80211: absorb crypto bits from net/ieee80211 2008-11-21 11:08:17 -05:00
lib80211_crypt_wep.c lib80211: absorb crypto bits from net/ieee80211 2008-11-21 11:08:17 -05:00
lib80211.c lib80211: consolidate crypt init routines 2008-11-21 11:08:17 -05:00
Makefile cfg80211/nl80211: scanning (and mac80211 update to use it) 2009-02-13 13:45:49 -05:00
nl80211.c nl80211: disallow user requests prior to regulatory_init() 2009-02-27 14:52:55 -05:00
nl80211.h wireless: fix for CONFIG_NL80211=n 2009-02-27 14:52:35 -05:00
radiotap.c wireless: use get/put_unaligned_* helpers 2008-05-14 16:29:32 -04:00
reg.c cfg80211: propagate -ENOMEM during regulatory_init() 2009-02-27 14:52:55 -05:00
reg.h cfg80211: add get reg command 2009-02-09 15:03:45 -05:00
scan.c cfg80211: clean up signal type 2009-02-27 14:52:42 -05:00
sysfs.c cfg80211: rename cfg80211_registered_device's idx to wiphy_idx 2009-02-27 14:52:54 -05:00
sysfs.h
util.c wireless: restrict to 32 legacy rates 2009-01-29 16:01:09 -05:00
wext-compat.c mac80211/cfg80211: move iwrange handler to cfg80211 2009-02-27 14:52:42 -05:00
wext.c wireless: convert wireless ioctl to net_device_ops 2009-01-06 10:42:24 -08:00