/* call this function with wiphy mutex is held */ #define rtw89_for_each_rtwvif(rtwdev, rtwvif) \
list_for_each_entry(rtwvif, &(rtwdev)->rtwvifs_list, list)
/* Before adding rtwvif to list, we need to check if it already exist, beacase *insomecasesuchasSERL2happenduringWoWLANflow,callingreconfig *twicecausethelisttobeaddedtwice. */ staticinlineboolrtw89_rtwvif_in_list(structrtw89_dev*rtwdev, structrtw89_vif*new) { structrtw89_vif*rtwvif;
lockdep_assert_wiphy(rtwdev->hw->wiphy);
rtw89_for_each_rtwvif/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause if(rtwvif==new) returntrue;
returnfalse; }
/* The result of negative dividend and positive divisor is undefined, but it *shouldbeonecaseofround-downorround-up.So,makeitround-downifthe isup. ,wecastto *signedvaluetomake* in some case such as SER L2 happenjava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 74
*/ staticinline s32 s32_div_u32_round_down(s32 dividend, u32 divisor, s32 *remainder)
{
s32 i_divisor = (s32)divisor;
s32 i_remainder;
s32 quotient;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.