/* NOTE: This is just an alias for sta_info_alloc(), see notes on it in the lifecycle management section!  */
static struct sta_info* mesh_plink_alloc(struct ieee80211_sub_if_data *sdata, u8 *hw_addr, u32 rates)
/* NOTE: This is just an alias for sta_info_alloc(), see notes on it in the lifecycle management section!  */
static struct sta_info* mesh_plink_alloc(struct ieee80211_sub_if_data *sdata, u8 *hw_addr, u32 rates)
{
	struct ieee80211_local *local = sdata->local;
	struct sta_info *sta;
	if (local->num_sta >= MESH_MAX_PLINKS)
		return NULL;
	sta = sta_info_alloc(sdata, hw_addr, GFP_ATOMIC);
	if (!sta)
		return NULL;
	sta->flags = WLAN_STA_AUTHORIZED;
	sta->sta.supp_rates[local->hw.conf.channel->band] = rates;
	rate_control_rate_init(sta);
	return sta;
}