| 245 | } |
| 246 | |
| 247 | static struct regdata * |
| 248 | getregdata(void) |
| 249 | { |
| 250 | static struct regdata *rdp = NULL; |
| 251 | if (rdp == NULL) { |
| 252 | rdp = lib80211_alloc_regdata(); |
| 253 | if (rdp == NULL) |
| 254 | errx(-1, "missing or corrupted regdomain database"); |
| 255 | } |
| 256 | return rdp; |
| 257 | } |
| 258 | |
| 259 | /* |
| 260 | * Given the channel at index i with attributes from, |
no outgoing calls
no test coverage detected