struct ieee80211_sta用于保存正在与我们通信的 STA 的信息。例如 MAC,capabilities,速率,带宽等。 struct ieee80211_hw存储一个底层物理设备(802.11 PHY)的信息及状态,与一个struct wiphy设备关联。 structieee80211_hw{structwiphy*wiphy;unsignedlongflags[BITS_TO_LONGS(NUM_IEEE80211_HW_FLAGS)];// 可用的硬件...
.n_small_ops = ARRAY_SIZE(nl80211_small_ops), //指定了保留操作的起始命令,这里是 NL80211_CMD_REMOVE_LINK_STA + 1 .resv_start_op = NL80211_CMD_REMOVE_LINK_STA + 1, //多播组(Multicast Groups)数组,用于注册多播组 .mcgrps = nl80211_mcgrps, //多播组数组的大小,使用了 nl80211_mcgrps...
cfg80211_del_sta_sinfo cfg80211_disconnected cfg80211_external_auth_request cfg80211_ft_event cfg80211_get_bss cfg80211_gtk_rekey_notify cfg80211_inform_bss_frame_data cfg80211_mgmt_tx_status cfg80211_michael_mic_failure cfg80211_new_sta ...
mlinux/moal_sta_cfg80211.c3067: sinfo->txrate.he_gi = rate->param.data_rate.tx_ht_gi;3111: sinfo->rxrate.he_gi = rate->param.data_rate.rx_ht_gi; where the above doesn't look like an enum at all, its value come apparently comes from wlan_ret_802_11_tx_...
* cfg80211_new_sta - notify userspace about station9 changes: 5 additions & 4 deletions 9 net/mac80211/sta_info.c Original file line numberDiff line numberDiff line change @@ -2233,11 +2233,12 @@ void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo) sinfo->fille...
* @punct_bitmap: the new puncturing bitmap * * Caller must hold wiphy mutex, therefore must only be called from sleepable * driver context! */ void cfg80211_ch_switch_notify(struct net_device *dev, struct cfg80211_chan_def *chandef, unsigned int link_id, u16 punct_bitmap); unsigned...
* Allow #STA <= 1, #AP <= 1, matching BI, channels = 1, 2 total: * * struct ieee80211_iface_limit limits1[] = { * { .max = 1, .types = BIT(NL80211_IFTYPE_STATION), }, * { .max = 1, .types = BIT(NL80211_IFTYPE_AP}, }, * }; * struct ieee80211_iface_combinati...
} static const struct nla_policy sta_flags_policy[NL80211_STA_FLAG_MAX + 1] = {25 changes: 25 additions & 0 deletions 25 net/wireless/util.c Original file line numberDiff line numberDiff line change @@ -896,3 +896,28 @@ u16 cfg80211_calculate_bitrate(struct rate_info *rate) ...
@@ -429,7 +429,8 @@ void ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata, container_of((void *)bss, struct cfg80211_bss, priv); struct ieee80211_channel *new_ch; struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; int new_freq = ieee80211_channel_to_fre...
struct sta_info *sta; bool tdls_peer_found = false; lockdep_assert_held(&sdata->wdev.mtx); lockdep_assert_wiphy(sdata->local->hw.wiphy); if (WARN_ON_ONCE(sdata->vif.type != NL80211_IFTYPE_STATION)) return -EINVAL; @@ -3211,7 +3200,6 @@ static int ieee80211_set_power_mgmt...