hc
2024-08-16 62c46c9150c4afde7e5b25436263fddf79d66f0b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __REG_DOMAIN_H__
#define __REG_DOMAIN_H__
#include <linux/types.h>
#include "wl_core.h"
#include "msg.h"
#include "cfg80211.h"
#include "wl_intf.h"
#include <linux/version.h>
 
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0))
#define NL80211_RRF_AUTO_BW 0
#endif
 
#define SPRD_REG_RULE(start, end, bw, reg_flags) REG_RULE(start, end, bw, 0, 0, reg_flags)
struct sprd_regdomain {
   char country_code[4];
   const struct ieee80211_regdomain *prRegdRules;
};
 
const struct ieee80211_regdomain *getRegdomainFromSprdDB(char *alpha2);
void apply_custom_regulatory(struct wiphy *pWiphy,
                           const struct ieee80211_regdomain *pRegdom);
void ShowChannel(struct wiphy *pWiphy);
const struct ieee80211_reg_rule *
sprd_freq_reg_info_regd(u32 center_freq,
          const struct ieee80211_regdomain *regd);
#endif