Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300637
b: refs/heads/master
c: 80007ef
h: refs/heads/master
i:
  300635: beaeb87
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Apr 9, 2012
1 parent 75c963e commit aebb8ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2a079fd48c05235b86016a33a79cb86a86e15a8
refs/heads/master: 80007efeff0568375b08faf93c7aad65602cb97e
10 changes: 10 additions & 0 deletions trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,15 @@ static void reg_regdb_query(const char *alpha2)

schedule_work(&reg_regdb_work);
}

/* Feel free to add any other sanity checks here */
static void reg_regdb_size_check(void)
{
/* We should ideally BUILD_BUG_ON() but then random builds would fail */
WARN_ONCE(!reg_regdb_size, "db.txt is empty, you should update it...");
}
#else
static inline void reg_regdb_size_check(void) {}
static inline void reg_regdb_query(const char *alpha2) {}
#endif /* CONFIG_CFG80211_INTERNAL_REGDB */

Expand Down Expand Up @@ -2322,6 +2330,8 @@ int __init regulatory_init(void)
spin_lock_init(&reg_requests_lock);
spin_lock_init(&reg_pending_beacons_lock);

reg_regdb_size_check();

cfg80211_regdomain = cfg80211_world_regdom;

user_alpha2[0] = '9';
Expand Down

0 comments on commit aebb8ed

Please sign in to comment.