IEEE802.11 Regulatory/Geographical Support for drivers - Patches for ieee80211
Subsystems (2)
RFC 1/1 IEEE802.11 Regulatory/Geographical Support for drivers - Patches for ieee80211
This message contains the patch to add routine ieee80211_init_geo to the kernel, and a new flag definition for the IEEE80211 codes. Note: I know that my mailer has messed up the white space by converting all the tabs to spaces. The original files are OK. Larry
=====================================================================================
include/net/ieee80211.h +6 -2
@@ -965,6 +965,7 @@ #define IEEE80211_52GHZ_CHANNELS (IEEE80enum {IEEE80211_CH_PASSIVE_ONLY = (1 <<0 ), +IEEE80211_CH_80211H_RULES = (1 <<1 ),IEEE80211_CH_B_ONLY = (1 <<2 ),IEEE80211_CH_NO_IBSS = (1 <<3 ),IEEE80211_CH_UNIFORM_SPREADING = (1 <<4 ),
@@ -973,10 +974,10 @@ enum { };struct ieee80211_channel { -u32 freq; +u32 freq;/* in MHz */ u8 channel;u8 flags; -u8 max_power; +u8 max_power;/* in dBm */ };struct ieee80211_geo {
@@ -1260,6 +1261,9 @@ extern const struct ieee80211_geo *ieee8extern int ieee80211_set_geo (struct ieee80211_device *ieee,const struct ieee80211_geo *geo); +extern int ieee80211_init_geo (struct ieee80211_device *ieee, +char * country,u8 outdoor); +extern int ieee80211_is_valid_channel (struct ieee80211_device *ieee,u8 channel); extern int ieee80211_channel_to_index(struct ieee80211_device *ieee,
net/ieee80211/ieee80211_geo.c +132 -0
148 lines not on this page · raw message