代码拉取完成,页面将自动刷新
/*
* HT-related code for XRadio drivers
*
* Copyright (c) 2013, XRadio
* Author: XRadio
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef XRADIO_HT_H_INCLUDED
#define XRADIO_HT_H_INCLUDED
#include <net/mac80211.h>
struct xradio_ht_oper {
struct ieee80211_sta_ht_cap ht_cap;
enum nl80211_channel_type channel_type;
u16 operation_mode;
};
static inline int xradio_is_ht(const struct xradio_ht_oper *ht_oper)
{
return ht_oper->channel_type != NL80211_CHAN_NO_HT;
}
static inline int xradio_ht_greenfield(const struct xradio_ht_oper *ht_oper)
{
return (xradio_is_ht(ht_oper) &&
(ht_oper->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) &&
!(ht_oper->operation_mode & IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT));
}
static inline int xradio_ht_ampdu_density(const struct xradio_ht_oper *ht_oper)
{
if (!xradio_is_ht(ht_oper))
return 0;
return ht_oper->ht_cap.ampdu_density;
}
int xradio_apcompat_detect(struct xradio_vif *priv, u8 rx_rate);
void xradio_remove_ht_ie(struct xradio_vif *priv, struct sk_buff *skb);
#endif /* XRADIO_HT_H_INCLUDED */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。