Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
This commit is contained in:
@@ -57,12 +57,12 @@ config RTL8192CU
|
||||
|
||||
config RTLWIFI
|
||||
tristate
|
||||
depends on RTL8192CE || RTL8192CU || RTL8192SE || RTL8192DE
|
||||
depends on RTL8192CE || RTL8192CU || RTL8192SE || RTL8192DE || RTL8723AE
|
||||
default m
|
||||
|
||||
config RTLWIFI_DEBUG
|
||||
bool "Additional debugging output"
|
||||
depends on RTL8192CE || RTL8192CU || RTL8192SE || RTL8192DE
|
||||
depends on RTL8192CE || RTL8192CU || RTL8192SE || RTL8192DE || RTL8723AE
|
||||
default y
|
||||
|
||||
config RTL8192C_COMMON
|
||||
|
@@ -879,7 +879,9 @@ static int rtl_op_ampdu_action(struct ieee80211_hw *hw,
|
||||
"IEEE80211_AMPDU_TX_START: TID:%d\n", tid);
|
||||
return rtl_tx_agg_start(hw, sta, tid, ssn);
|
||||
break;
|
||||
case IEEE80211_AMPDU_TX_STOP:
|
||||
case IEEE80211_AMPDU_TX_STOP_CONT:
|
||||
case IEEE80211_AMPDU_TX_STOP_FLUSH:
|
||||
case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT:
|
||||
RT_TRACE(rtlpriv, COMP_MAC80211, DBG_TRACE,
|
||||
"IEEE80211_AMPDU_TX_STOP: TID:%d\n", tid);
|
||||
return rtl_tx_agg_stop(hw, sta, tid);
|
||||
|
@@ -158,8 +158,6 @@ static void _rtl_reg_apply_beaconing_flags(struct wiphy *wiphy,
|
||||
const struct ieee80211_reg_rule *reg_rule;
|
||||
struct ieee80211_channel *ch;
|
||||
unsigned int i;
|
||||
u32 bandwidth = 0;
|
||||
int r;
|
||||
|
||||
for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
|
||||
|
||||
@@ -174,9 +172,8 @@ static void _rtl_reg_apply_beaconing_flags(struct wiphy *wiphy,
|
||||
(ch->flags & IEEE80211_CHAN_RADAR))
|
||||
continue;
|
||||
if (initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) {
|
||||
r = freq_reg_info(wiphy, ch->center_freq,
|
||||
bandwidth, ®_rule);
|
||||
if (r)
|
||||
reg_rule = freq_reg_info(wiphy, ch->center_freq);
|
||||
if (IS_ERR(reg_rule))
|
||||
continue;
|
||||
|
||||
/*
|
||||
@@ -211,8 +208,6 @@ static void _rtl_reg_apply_active_scan_flags(struct wiphy *wiphy,
|
||||
struct ieee80211_supported_band *sband;
|
||||
struct ieee80211_channel *ch;
|
||||
const struct ieee80211_reg_rule *reg_rule;
|
||||
u32 bandwidth = 0;
|
||||
int r;
|
||||
|
||||
if (!wiphy->bands[IEEE80211_BAND_2GHZ])
|
||||
return;
|
||||
@@ -240,16 +235,16 @@ static void _rtl_reg_apply_active_scan_flags(struct wiphy *wiphy,
|
||||
*/
|
||||
|
||||
ch = &sband->channels[11]; /* CH 12 */
|
||||
r = freq_reg_info(wiphy, ch->center_freq, bandwidth, ®_rule);
|
||||
if (!r) {
|
||||
reg_rule = freq_reg_info(wiphy, ch->center_freq);
|
||||
if (!IS_ERR(reg_rule)) {
|
||||
if (!(reg_rule->flags & NL80211_RRF_PASSIVE_SCAN))
|
||||
if (ch->flags & IEEE80211_CHAN_PASSIVE_SCAN)
|
||||
ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
|
||||
}
|
||||
|
||||
ch = &sband->channels[12]; /* CH 13 */
|
||||
r = freq_reg_info(wiphy, ch->center_freq, bandwidth, ®_rule);
|
||||
if (!r) {
|
||||
reg_rule = freq_reg_info(wiphy, ch->center_freq);
|
||||
if (!IS_ERR(reg_rule)) {
|
||||
if (!(reg_rule->flags & NL80211_RRF_PASSIVE_SCAN))
|
||||
if (ch->flags & IEEE80211_CHAN_PASSIVE_SCAN)
|
||||
ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
|
||||
@@ -303,9 +298,9 @@ static void _rtl_reg_apply_world_flags(struct wiphy *wiphy,
|
||||
return;
|
||||
}
|
||||
|
||||
static int _rtl_reg_notifier_apply(struct wiphy *wiphy,
|
||||
struct regulatory_request *request,
|
||||
struct rtl_regulatory *reg)
|
||||
static void _rtl_reg_notifier_apply(struct wiphy *wiphy,
|
||||
struct regulatory_request *request,
|
||||
struct rtl_regulatory *reg)
|
||||
{
|
||||
/* We always apply this */
|
||||
_rtl_reg_apply_radar_flags(wiphy);
|
||||
@@ -319,8 +314,6 @@ static int _rtl_reg_notifier_apply(struct wiphy *wiphy,
|
||||
_rtl_reg_apply_world_flags(wiphy, request->initiator, reg);
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct ieee80211_regdomain *_rtl_regdomain_select(
|
||||
@@ -353,9 +346,9 @@ static const struct ieee80211_regdomain *_rtl_regdomain_select(
|
||||
|
||||
static int _rtl_regd_init_wiphy(struct rtl_regulatory *reg,
|
||||
struct wiphy *wiphy,
|
||||
int (*reg_notifier) (struct wiphy *wiphy,
|
||||
struct regulatory_request *
|
||||
request))
|
||||
void (*reg_notifier) (struct wiphy *wiphy,
|
||||
struct regulatory_request *
|
||||
request))
|
||||
{
|
||||
const struct ieee80211_regdomain *regd;
|
||||
|
||||
@@ -384,7 +377,7 @@ static struct country_code_to_enum_rd *_rtl_regd_find_country(u16 countrycode)
|
||||
}
|
||||
|
||||
int rtl_regd_init(struct ieee80211_hw *hw,
|
||||
int (*reg_notifier) (struct wiphy *wiphy,
|
||||
void (*reg_notifier) (struct wiphy *wiphy,
|
||||
struct regulatory_request *request))
|
||||
{
|
||||
struct rtl_priv *rtlpriv = rtl_priv(hw);
|
||||
@@ -426,12 +419,12 @@ int rtl_regd_init(struct ieee80211_hw *hw,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request)
|
||||
void rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request)
|
||||
{
|
||||
struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
|
||||
struct rtl_priv *rtlpriv = rtl_priv(hw);
|
||||
|
||||
RT_TRACE(rtlpriv, COMP_REGD, DBG_LOUD, "\n");
|
||||
|
||||
return _rtl_reg_notifier_apply(wiphy, request, &rtlpriv->regd);
|
||||
_rtl_reg_notifier_apply(wiphy, request, &rtlpriv->regd);
|
||||
}
|
||||
|
@@ -55,7 +55,7 @@ enum country_code_type_t {
|
||||
};
|
||||
|
||||
int rtl_regd_init(struct ieee80211_hw *hw,
|
||||
int (*reg_notifier) (struct wiphy *wiphy,
|
||||
struct regulatory_request *request));
|
||||
int rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request);
|
||||
void (*reg_notifier) (struct wiphy *wiphy,
|
||||
struct regulatory_request *request));
|
||||
void rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request);
|
||||
#endif
|
||||
|
@@ -452,7 +452,7 @@ static void _rtl92de_translate_rx_signal_stuff(struct ieee80211_hw *hw,
|
||||
u8 *praddr;
|
||||
u16 type, cfc;
|
||||
__le16 fc;
|
||||
bool packet_matchbssid, packet_toself, packet_beacon;
|
||||
bool packet_matchbssid, packet_toself, packet_beacon = false;
|
||||
|
||||
tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift;
|
||||
hdr = (struct ieee80211_hdr *)tmp_buf;
|
||||
|
@@ -480,7 +480,7 @@ static void _rtl92se_translate_rx_signal_stuff(struct ieee80211_hw *hw,
|
||||
u8 *praddr;
|
||||
__le16 fc;
|
||||
u16 type, cfc;
|
||||
bool packet_matchbssid, packet_toself, packet_beacon;
|
||||
bool packet_matchbssid, packet_toself, packet_beacon = false;
|
||||
|
||||
tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift;
|
||||
|
||||
|
@@ -247,7 +247,7 @@ static void _rtl8723ae_translate_rx_signal_stuff(struct ieee80211_hw *hw,
|
||||
u8 *psaddr;
|
||||
__le16 fc;
|
||||
u16 type;
|
||||
bool packet_matchbssid, packet_toself, packet_beacon;
|
||||
bool packet_matchbssid, packet_toself, packet_beacon = false;
|
||||
|
||||
tmp_buf = skb->data + pstatus->rx_drvinfo_size + pstatus->rx_bufshift;
|
||||
|
||||
|
Reference in New Issue
Block a user