Commit 8375af3b authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville

cfg80211: remove switch from __set_regdom()

We have control over the REGDOM_SET_BY_* macros passed
so remove the switch.

This patch has no functional changes.
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5203cdb6
...@@ -829,21 +829,12 @@ static int __set_regdom(const struct ieee80211_regdomain *rd) ...@@ -829,21 +829,12 @@ static int __set_regdom(const struct ieee80211_regdomain *rd)
reset_regdomains(); reset_regdomains();
/* Country IE parsing coming soon */ /* Country IE parsing coming soon */
switch (last_request->initiator) {
case REGDOM_SET_BY_CORE: if (!is_valid_rd(rd)) {
case REGDOM_SET_BY_DRIVER: printk(KERN_ERR "cfg80211: Invalid "
case REGDOM_SET_BY_USER: "regulatory domain detected:\n");
if (!is_valid_rd(rd)) { print_regdomain_info(rd);
printk(KERN_ERR "cfg80211: Invalid " return -EINVAL;
"regulatory domain detected:\n");
print_regdomain_info(rd);
return -EINVAL;
}
break;
case REGDOM_SET_BY_COUNTRY_IE: /* Not yet */
WARN_ON(1);
default:
return -EOPNOTSUPP;
} }
if (unlikely(last_request->intersect)) { if (unlikely(last_request->intersect)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment