diff options
-rw-r--r-- | net/wireless/reg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index dbb01df3aacb..2303ee73b50a 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -929,11 +929,13 @@ static bool reg_request_cell_base(struct regulatory_request *request) | |||
929 | 929 | ||
930 | bool reg_last_request_cell_base(void) | 930 | bool reg_last_request_cell_base(void) |
931 | { | 931 | { |
932 | bool val; | ||
932 | assert_cfg80211_lock(); | 933 | assert_cfg80211_lock(); |
933 | 934 | ||
934 | mutex_lock(®_mutex); | 935 | mutex_lock(®_mutex); |
935 | return reg_request_cell_base(last_request); | 936 | val = reg_request_cell_base(last_request); |
936 | mutex_unlock(®_mutex); | 937 | mutex_unlock(®_mutex); |
938 | return val; | ||
937 | } | 939 | } |
938 | 940 | ||
939 | #ifdef CONFIG_CFG80211_CERTIFICATION_ONUS | 941 | #ifdef CONFIG_CFG80211_CERTIFICATION_ONUS |