cfg80211: remove REGDOM_SET_BY_INIT
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 10 Mar 2009 02:07:40 +0000 (22:07 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Mar 2009 22:09:39 +0000 (18:09 -0400)
This is not used as we can always just assume the first
regulatory domain set will _always_ be a static regulatory
domain. REGDOM_SET_BY_CORE will be the first request from
cfg80211 for a regdomain and that then populates the first
regulatory request.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/main.c
drivers/net/wireless/ath9k/regd.c
include/net/cfg80211.h
net/wireless/reg.c

index 5268697be79d05c62af755f0cfc212bfe6ec4ede..1d6b05c0d800619182fb8c63d39e23d21352306d 100644 (file)
@@ -1670,7 +1670,7 @@ int ath_attach(u16 devid, struct ath_softc *sc)
        }
        wiphy_apply_custom_regulatory(hw->wiphy, regd);
        ath9k_reg_apply_radar_flags(hw->wiphy);
-       ath9k_reg_apply_world_flags(hw->wiphy, REGDOM_SET_BY_INIT);
+       ath9k_reg_apply_world_flags(hw->wiphy, REGDOM_SET_BY_DRIVER);
 
        INIT_WORK(&sc->chan_work, ath9k_wiphy_chan_work);
        INIT_DELAYED_WORK(&sc->wiphy_work, ath9k_wiphy_work);
index 639da975bf543f766afdc743e6abce24ed957caf..ff0afc02f3ce8c74aa2de6e1c31f943bc3a1adda 100644 (file)
@@ -341,7 +341,6 @@ int ath9k_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request)
 
        switch (request->initiator) {
        case REGDOM_SET_BY_DRIVER:
-       case REGDOM_SET_BY_INIT:
        case REGDOM_SET_BY_CORE:
        case REGDOM_SET_BY_USER:
                break;
index 75fa556728ce824451acdc93efa75d3e19fae443..f195ea460811e8a5f77306493b0544f1d80d98d4 100644 (file)
@@ -350,8 +350,6 @@ struct bss_parameters {
 
 /**
  * enum reg_set_by - Indicates who is trying to set the regulatory domain
- * @REGDOM_SET_BY_INIT: regulatory domain was set by initialization. We will be
- *     using a static world regulatory domain by default.
  * @REGDOM_SET_BY_CORE: Core queried CRDA for a dynamic world regulatory domain.
  * @REGDOM_SET_BY_USER: User asked the wireless core to set the
  *     regulatory domain.
@@ -362,7 +360,6 @@ struct bss_parameters {
  *     should consider.
  */
 enum reg_set_by {
-       REGDOM_SET_BY_INIT,
        REGDOM_SET_BY_CORE,
        REGDOM_SET_BY_USER,
        REGDOM_SET_BY_DRIVER,
index fa738be897a3d4bef654ad9db2b5b2281b0d3b24..47ff44751b70d30256091c92a5731529a2721c06 100644 (file)
@@ -1255,8 +1255,6 @@ static int ignore_request(struct wiphy *wiphy,
                return 0;
 
        switch (pending_request->initiator) {
-       case REGDOM_SET_BY_INIT:
-               return -EINVAL;
        case REGDOM_SET_BY_CORE:
                return -EINVAL;
        case REGDOM_SET_BY_COUNTRY_IE: