12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099 |
- #ifndef _QDF_NBUF_H
- #define _QDF_NBUF_H
- #include <qdf_util.h>
- #include <qdf_types.h>
- #include <qdf_lock.h>
- #include <i_qdf_nbuf.h>
- #include <i_qdf_trace.h>
- #include <qdf_net_types.h>
- #define IPA_NBUF_OWNER_ID 0xaa55aa55
- #define QDF_NBUF_PKT_TRAC_TYPE_EAPOL 0x02
- #define QDF_NBUF_PKT_TRAC_TYPE_DHCP 0x04
- #define QDF_NBUF_PKT_TRAC_TYPE_MGMT_ACTION 0x08
- #define QDF_NBUF_PKT_TRAC_TYPE_ARP 0x10
- #define QDF_NBUF_PKT_TRAC_MAX_STRING 12
- #define QDF_NBUF_PKT_TRAC_PROTO_STRING 4
- #define QDF_NBUF_PKT_ERROR 1
- #define QDF_NBUF_TRAC_IPV4_OFFSET 14
- #define QDF_NBUF_TRAC_IPV4_HEADER_SIZE 20
- #define QDF_NBUF_TRAC_DHCP_SRV_PORT 67
- #define QDF_NBUF_TRAC_DHCP_CLI_PORT 68
- #define QDF_NBUF_TRAC_ETH_TYPE_OFFSET 12
- #define QDF_NBUF_TRAC_EAPOL_ETH_TYPE 0x888E
- #define QDF_NBUF_TRAC_WAPI_ETH_TYPE 0x88b4
- #define QDF_NBUF_TRAC_ARP_ETH_TYPE 0x0806
- #define QDF_NBUF_TRAC_IPV4_ETH_TYPE 0x0800
- #define QDF_NBUF_TRAC_IPV6_ETH_TYPE 0x86dd
- #define QDF_NBUF_DEST_MAC_OFFSET 0
- #define QDF_NBUF_SRC_MAC_OFFSET 6
- #define QDF_NBUF_TRAC_IPV4_PROTO_TYPE_OFFSET 23
- #define QDF_NBUF_TRAC_IPV4_DEST_ADDR_OFFSET 30
- #define QDF_NBUF_TRAC_IPV6_PROTO_TYPE_OFFSET 20
- #define QDF_NBUF_TRAC_IPV4_ADDR_MCAST_MASK 0xE0000000
- #define QDF_NBUF_TRAC_IPV4_ADDR_BCAST_MASK 0xF0000000
- #define QDF_NBUF_TRAC_IPV6_DEST_ADDR_OFFSET 38
- #define QDF_NBUF_TRAC_IPV6_DEST_ADDR 0xFF00
- #define QDF_NBUF_TRAC_ICMP_TYPE 1
- #define QDF_NBUF_TRAC_TCP_TYPE 6
- #define QDF_NBUF_TRAC_UDP_TYPE 17
- #define QDF_NBUF_TRAC_ICMPV6_TYPE 0x3a
- #define EAPOL_PACKET_TYPE_OFFSET 15
- #define EAPOL_KEY_INFO_OFFSET 19
- #define EAPOL_PKT_LEN_OFFSET 16
- #define EAPOL_KEY_LEN_OFFSET 21
- #define EAPOL_MASK 0x8013
- #define EAPOL_M1_BIT_MASK 0x8000
- #define EAPOL_M2_BIT_MASK 0x0001
- #define EAPOL_M3_BIT_MASK 0x8013
- #define EAPOL_M4_BIT_MASK 0x0003
- #define QDF_NBUF_TX_PKT_INVALID 0
- #define QDF_NBUF_TX_PKT_DATA_TRACK 1
- #define QDF_NBUF_TX_PKT_MGMT_TRACK 2
- #define QDF_NBUF_TX_PKT_HDD 1
- #define QDF_NBUF_TX_PKT_TXRX_ENQUEUE 2
- #define QDF_NBUF_TX_PKT_TXRX_DEQUEUE 3
- #define QDF_NBUF_TX_PKT_TXRX 4
- #define QDF_NBUF_TX_PKT_HTT 5
- #define QDF_NBUF_TX_PKT_HTC 6
- #define QDF_NBUF_TX_PKT_HIF 7
- #define QDF_NBUF_TX_PKT_CE 8
- #define QDF_NBUF_TX_PKT_FREE 9
- #define QDF_NBUF_TX_PKT_STATE_MAX 10
- #ifdef TSO_DEBUG_LOG_ENABLE
- #define TSO_DEBUG(args ...) printk(args)
- #else
- #define TSO_DEBUG(args ...)
- #endif
- struct mon_rx_status {
- uint64_t tsft;
- uint16_t chan_freq;
- uint16_t chan_num;
- uint16_t chan_flags;
- uint16_t vht_flags;
- uint16_t vht_flag_values6;
- uint8_t rate;
- uint8_t rtap_flags;
- uint8_t ant_signal_db;
- uint8_t nr_ant;
- uint8_t mcs;
- uint8_t vht_flag_values1;
- uint8_t vht_flag_values2;
- uint8_t vht_flag_values3[4];
- uint8_t vht_flag_values4;
- uint8_t vht_flag_values5;
- uint8_t is_stbc;
- uint8_t sgi;
- uint8_t ldpc;
- uint8_t beamformed;
- };
- #define QDF_DHCP_OPTION53 (0x35)
- #define QDF_DHCP_OPTION53_LENGTH (1)
- #define QDF_DHCP_OPTION53_OFFSET (0x11A)
- #define QDF_DHCP_OPTION53_LENGTH_OFFSET (0x11B)
- #define QDF_DHCP_OPTION53_STATUS_OFFSET (0x11C)
- #define DHCP_PKT_LEN_OFFSET 16
- #define DHCP_TRANSACTION_ID_OFFSET 46
- #define QDF_DHCP_DISCOVER (1)
- #define QDF_DHCP_OFFER (2)
- #define QDF_DHCP_REQUEST (3)
- #define QDF_DHCP_DECLINE (4)
- #define QDF_DHCP_ACK (5)
- #define QDF_DHCP_NAK (6)
- #define QDF_DHCP_RELEASE (7)
- #define QDF_DHCP_INFORM (8)
- #define ARP_SUB_TYPE_OFFSET 20
- #define ARP_REQUEST (1)
- #define ARP_RESPONSE (2)
- #define IPV4_PKT_LEN_OFFSET 16
- #define IPV4_TCP_SEQ_NUM_OFFSET 38
- #define IPV4_SRC_PORT_OFFSET 34
- #define IPV4_DST_PORT_OFFSET 36
- #define ICMP_SEQ_NUM_OFFSET 40
- #define ICMP_SUBTYPE_OFFSET 34
- #define ICMP_REQUEST 0x08
- #define ICMP_RESPONSE 0x00
- #define IPV6_PKT_LEN_OFFSET 18
- #define IPV6_TCP_SEQ_NUM_OFFSET 58
- #define IPV6_SRC_PORT_OFFSET 54
- #define IPV6_DST_PORT_OFFSET 56
- #define ICMPV6_SEQ_NUM_OFFSET 60
- #define ICMPV6_SUBTYPE_OFFSET 54
- #define ICMPV6_REQUEST 0x80
- #define ICMPV6_RESPONSE 0x81
- #define QDF_NBUF_IPA_CHECK_MASK 0x80000000
- enum qdf_proto_type {
- QDF_PROTO_TYPE_DHCP,
- QDF_PROTO_TYPE_EAPOL,
- QDF_PROTO_TYPE_ARP,
- QDF_PROTO_TYPE_MGMT,
- QDF_PROTO_TYPE_MAX
- };
- enum qdf_proto_subtype {
- QDF_PROTO_INVALID,
- QDF_PROTO_EAPOL_M1,
- QDF_PROTO_EAPOL_M2,
- QDF_PROTO_EAPOL_M3,
- QDF_PROTO_EAPOL_M4,
- QDF_PROTO_DHCP_DISCOVER,
- QDF_PROTO_DHCP_REQUEST,
- QDF_PROTO_DHCP_OFFER,
- QDF_PROTO_DHCP_ACK,
- QDF_PROTO_DHCP_NACK,
- QDF_PROTO_DHCP_RELEASE,
- QDF_PROTO_DHCP_INFORM,
- QDF_PROTO_DHCP_DECLINE,
- QDF_PROTO_ARP_REQ,
- QDF_PROTO_ARP_RES,
- QDF_PROTO_ICMP_REQ,
- QDF_PROTO_ICMP_RES,
- QDF_PROTO_ICMPV6_REQ,
- QDF_PROTO_ICMPV6_RES,
- QDF_PROTO_IPV4_UDP,
- QDF_PROTO_IPV4_TCP,
- QDF_PROTO_IPV6_UDP,
- QDF_PROTO_IPV6_TCP,
- QDF_PROTO_MGMT_ASSOC,
- QDF_PROTO_MGMT_DISASSOC,
- QDF_PROTO_MGMT_AUTH,
- QDF_PROTO_MGMT_DEAUTH,
- QDF_PROTO_SUBTYPE_MAX
- };
- typedef __qdf_nbuf_t qdf_nbuf_t;
- typedef void (*qdf_dma_map_cb_t)(void *arg, qdf_nbuf_t buf,
- qdf_dma_map_t dmap);
- typedef __qdf_nbuf_queue_t qdf_nbuf_queue_t;
- static inline QDF_STATUS
- qdf_nbuf_dmamap_create(qdf_device_t osdev, qdf_dma_map_t *dmap)
- {
- return __qdf_nbuf_dmamap_create(osdev, dmap);
- }
- static inline void
- qdf_nbuf_dmamap_destroy(qdf_device_t osdev, qdf_dma_map_t dmap)
- {
- __qdf_nbuf_dmamap_destroy(osdev, dmap);
- }
- static inline void
- qdf_nbuf_dmamap_set_cb(qdf_dma_map_t dmap, qdf_dma_map_cb_t cb, void *arg)
- {
- __qdf_nbuf_dmamap_set_cb(dmap, cb, arg);
- }
- static inline void
- qdf_nbuf_set_send_complete_flag(qdf_nbuf_t buf, bool flag)
- {
- __qdf_nbuf_set_send_complete_flag(buf, flag);
- }
- static inline QDF_STATUS
- qdf_nbuf_map(qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir)
- {
- return __qdf_nbuf_map(osdev, buf, dir);
- }
- static inline void
- qdf_nbuf_unmap(qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir)
- {
- __qdf_nbuf_unmap(osdev, buf, dir);
- }
- static inline QDF_STATUS
- qdf_nbuf_map_nbytes(qdf_device_t osdev, qdf_nbuf_t buf,
- qdf_dma_dir_t dir, int nbytes)
- {
- return __qdf_nbuf_map_nbytes(osdev, buf, dir, nbytes);
- }
- static inline void
- qdf_nbuf_unmap_nbytes(qdf_device_t osdev,
- qdf_nbuf_t buf, qdf_dma_dir_t dir, int nbytes)
- {
- __qdf_nbuf_unmap_nbytes(osdev, buf, dir, nbytes);
- }
- #ifndef REMOVE_INIT_DEBUG_CODE
- static inline void
- qdf_nbuf_sync_for_cpu(qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir)
- {
- __qdf_nbuf_sync_for_cpu(osdev, buf, dir);
- }
- #endif
- static inline QDF_STATUS
- qdf_nbuf_map_single(qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir)
- {
- return __qdf_nbuf_map_single(osdev, buf, dir);
- }
- static inline QDF_STATUS
- qdf_nbuf_map_nbytes_single(
- qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir, int nbytes)
- {
- return __qdf_nbuf_map_nbytes_single(osdev, buf, dir, nbytes);
- }
- static inline void
- qdf_nbuf_unmap_single(qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir)
- {
- __qdf_nbuf_unmap_single(osdev, buf, dir);
- }
- static inline void
- qdf_nbuf_unmap_nbytes_single(
- qdf_device_t osdev, qdf_nbuf_t buf, qdf_dma_dir_t dir, int nbytes)
- {
- return __qdf_nbuf_unmap_nbytes_single(osdev, buf, dir, nbytes);
- }
- static inline int qdf_nbuf_get_num_frags(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_num_frags(buf);
- }
- static inline int qdf_nbuf_get_frag_len(qdf_nbuf_t buf, int frag_num)
- {
- QDF_BUG(!(frag_num >= QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS));
- return __qdf_nbuf_get_frag_len(buf, frag_num);
- }
- static inline unsigned char *qdf_nbuf_get_frag_vaddr(qdf_nbuf_t buf,
- int frag_num)
- {
- QDF_BUG(!(frag_num >= QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS));
- return __qdf_nbuf_get_frag_vaddr(buf, frag_num);
- }
- static inline unsigned char *
- qdf_nbuf_get_frag_vaddr_always(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_frag_vaddr_always(buf);
- }
- static inline qdf_dma_addr_t qdf_nbuf_get_frag_paddr(qdf_nbuf_t buf,
- unsigned int frag_num)
- {
- QDF_BUG(!(frag_num >= QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS));
- return __qdf_nbuf_get_frag_paddr(buf, frag_num);
- }
- static inline int qdf_nbuf_get_frag_is_wordstream(qdf_nbuf_t buf, int frag_num)
- {
- QDF_BUG(!(frag_num >= QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS));
- return __qdf_nbuf_get_frag_is_wordstream(buf, frag_num);
- }
- static inline int qdf_nbuf_ipa_owned_get(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_ipa_owned_get(buf);
- }
- static inline void qdf_nbuf_ipa_owned_set(qdf_nbuf_t buf)
- {
- __qdf_nbuf_ipa_owned_set(buf);
- }
- static inline int qdf_nbuf_ipa_priv_get(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_ipa_priv_get(buf);
- }
- static inline void qdf_nbuf_ipa_priv_set(qdf_nbuf_t buf, uint32_t priv)
- {
- QDF_BUG(!(priv & QDF_NBUF_IPA_CHECK_MASK));
- __qdf_nbuf_ipa_priv_set(buf, priv);
- }
- static inline void
- qdf_nbuf_set_frag_is_wordstream(qdf_nbuf_t buf,
- int frag_num, int is_wordstream)
- {
- QDF_BUG(!(frag_num >= QDF_NBUF_CB_TX_MAX_EXTRA_FRAGS));
- __qdf_nbuf_set_frag_is_wordstream(buf, frag_num, is_wordstream);
- }
- static inline void
- qdf_nbuf_set_vdev_ctx(qdf_nbuf_t buf, void *vdev_ctx)
- {
- __qdf_nbuf_set_vdev_ctx(buf, vdev_ctx);
- }
- static inline void
- qdf_nbuf_set_fctx_type(qdf_nbuf_t buf, void *ctx, uint8_t type)
- {
- __qdf_nbuf_set_fctx_type(buf, ctx, type);
- }
- static inline void *
- qdf_nbuf_get_vdev_ctx(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_vdev_ctx(buf);
- }
- static inline void *qdf_nbuf_get_fctx(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_fctx(buf);
- }
- static inline uint8_t qdf_nbuf_get_ftype(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_ftype(buf);
- }
- static inline qdf_dma_addr_t
- qdf_nbuf_mapped_paddr_get(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_mapped_paddr_get(buf);
- }
- static inline void
- qdf_nbuf_mapped_paddr_set(qdf_nbuf_t buf, qdf_dma_addr_t paddr)
- {
- __qdf_nbuf_mapped_paddr_set(buf, paddr);
- }
- static inline void
- qdf_nbuf_frag_push_head(qdf_nbuf_t buf,
- int frag_len, char *frag_vaddr,
- qdf_dma_addr_t frag_paddr)
- {
- __qdf_nbuf_frag_push_head(buf, frag_len, frag_vaddr, frag_paddr);
- }
- #define qdf_nbuf_num_frags_init(_nbuf) __qdf_nbuf_num_frags_init((_nbuf))
- static inline void
- qdf_nbuf_set_chfrag_start(qdf_nbuf_t buf, uint8_t val)
- {
- __qdf_nbuf_set_chfrag_start(buf, val);
- }
- static inline int qdf_nbuf_is_chfrag_start(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_is_chfrag_start(buf);
- }
- static inline void qdf_nbuf_set_chfrag_end(qdf_nbuf_t buf, uint8_t val)
- {
- __qdf_nbuf_set_chfrag_end(buf, val);
- }
- static inline int qdf_nbuf_is_chfrag_end(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_is_chfrag_end(buf);
- }
- static inline void
- qdf_nbuf_dma_map_info(qdf_dma_map_t bmap, qdf_dmamap_info_t *sg)
- {
- __qdf_nbuf_dma_map_info(bmap, sg);
- }
- #ifdef MEMORY_DEBUG
- void qdf_net_buf_debug_init(void);
- void qdf_net_buf_debug_exit(void);
- void qdf_net_buf_debug_clean(void);
- void qdf_net_buf_debug_add_node(qdf_nbuf_t net_buf, size_t size,
- uint8_t *file_name, uint32_t line_num);
- void qdf_net_buf_debug_delete_node(qdf_nbuf_t net_buf);
- void qdf_net_buf_debug_release_skb(qdf_nbuf_t net_buf);
- #define qdf_nbuf_alloc(d, s, r, a, p) \
- qdf_nbuf_alloc_debug(d, s, r, a, p, __FILE__, __LINE__)
- static inline qdf_nbuf_t
- qdf_nbuf_alloc_debug(qdf_device_t osdev, qdf_size_t size, int reserve,
- int align, int prio, uint8_t *file_name,
- uint32_t line_num)
- {
- qdf_nbuf_t net_buf;
- net_buf = __qdf_nbuf_alloc(osdev, size, reserve, align, prio);
-
- if (qdf_likely(net_buf))
- qdf_net_buf_debug_add_node(net_buf, size, file_name, line_num);
- return net_buf;
- }
- static inline void qdf_nbuf_free(qdf_nbuf_t net_buf)
- {
-
- if (qdf_likely(net_buf))
- qdf_net_buf_debug_delete_node(net_buf);
- __qdf_nbuf_free(net_buf);
- }
- #else
- static inline void qdf_net_buf_debug_release_skb(qdf_nbuf_t net_buf)
- {
- return;
- }
- static inline qdf_nbuf_t
- qdf_nbuf_alloc(qdf_device_t osdev,
- qdf_size_t size, int reserve, int align, int prio)
- {
- return __qdf_nbuf_alloc(osdev, size, reserve, align, prio);
- }
- static inline void qdf_nbuf_free(qdf_nbuf_t buf)
- {
- __qdf_nbuf_free(buf);
- }
- #endif
- #ifdef WLAN_FEATURE_FASTPATH
- static inline void qdf_nbuf_init_fast(qdf_nbuf_t nbuf)
- {
- atomic_set(&nbuf->users, 1);
- nbuf->data = nbuf->head + NET_SKB_PAD;
- skb_reset_tail_pointer(nbuf);
- }
- #endif
- static inline void qdf_nbuf_tx_free(qdf_nbuf_t buf_list, int tx_err)
- {
- __qdf_nbuf_tx_free(buf_list, tx_err);
- }
- static inline void qdf_nbuf_ref(qdf_nbuf_t buf)
- {
- __qdf_nbuf_ref(buf);
- }
- static inline int qdf_nbuf_shared(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_shared(buf);
- }
- static inline qdf_nbuf_t qdf_nbuf_copy(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_copy(buf);
- }
- static inline QDF_STATUS qdf_nbuf_cat(qdf_nbuf_t dst, qdf_nbuf_t src)
- {
- return __qdf_nbuf_cat(dst, src);
- }
- static inline int32_t
- qdf_nbuf_copy_bits(qdf_nbuf_t nbuf, uint32_t offset, uint32_t len, void *to)
- {
- return __qdf_nbuf_copy_bits(nbuf, offset, len, to);
- }
- static inline qdf_nbuf_t qdf_nbuf_clone(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_clone(buf);
- }
- static inline uint8_t *qdf_nbuf_head(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_head(buf);
- }
- static inline uint8_t *qdf_nbuf_data(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data(buf);
- }
- static inline uint8_t *qdf_nbuf_data_addr(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_addr(buf);
- }
- static inline uint32_t qdf_nbuf_headroom(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_headroom(buf);
- }
- static inline uint32_t qdf_nbuf_tailroom(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_tailroom(buf);
- }
- static inline uint8_t *qdf_nbuf_push_head(qdf_nbuf_t buf, qdf_size_t size)
- {
- return __qdf_nbuf_push_head(buf, size);
- }
- static inline uint8_t *qdf_nbuf_put_tail(qdf_nbuf_t buf, qdf_size_t size)
- {
- return __qdf_nbuf_put_tail(buf, size);
- }
- static inline uint8_t *qdf_nbuf_pull_head(qdf_nbuf_t buf, qdf_size_t size)
- {
- return __qdf_nbuf_pull_head(buf, size);
- }
- static inline void qdf_nbuf_trim_tail(qdf_nbuf_t buf, qdf_size_t size)
- {
- __qdf_nbuf_trim_tail(buf, size);
- }
- static inline qdf_size_t qdf_nbuf_len(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_len(buf);
- }
- static inline void qdf_nbuf_set_pktlen(qdf_nbuf_t buf, uint32_t len)
- {
- __qdf_nbuf_set_pktlen(buf, len);
- }
- static inline void qdf_nbuf_reserve(qdf_nbuf_t buf, qdf_size_t size)
- {
- __qdf_nbuf_reserve(buf, size);
- }
- static inline void
- qdf_nbuf_peek_header(qdf_nbuf_t buf, uint8_t **addr, uint32_t *len)
- {
- __qdf_nbuf_peek_header(buf, addr, len);
- }
- static inline void qdf_nbuf_queue_init(qdf_nbuf_queue_t *head)
- {
- __qdf_nbuf_queue_init(head);
- }
- static inline void qdf_nbuf_queue_add(qdf_nbuf_queue_t *head, qdf_nbuf_t buf)
- {
- __qdf_nbuf_queue_add(head, buf);
- }
- static inline void
- qdf_nbuf_queue_insert_head(qdf_nbuf_queue_t *head, qdf_nbuf_t buf)
- {
- __qdf_nbuf_queue_insert_head(head, buf);
- }
- static inline qdf_nbuf_t qdf_nbuf_queue_remove(qdf_nbuf_queue_t *head)
- {
- return __qdf_nbuf_queue_remove(head);
- }
- static inline uint32_t qdf_nbuf_queue_len(qdf_nbuf_queue_t *head)
- {
- return __qdf_nbuf_queue_len(head);
- }
- static inline qdf_nbuf_t qdf_nbuf_queue_next(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_queue_next(buf);
- }
- static inline bool qdf_nbuf_is_queue_empty(qdf_nbuf_queue_t *nbq)
- {
- return __qdf_nbuf_is_queue_empty(nbq);
- }
- static inline qdf_nbuf_queue_t *
- qdf_nbuf_queue_append(qdf_nbuf_queue_t *dest, qdf_nbuf_queue_t *src)
- {
- return __qdf_nbuf_queue_append(dest, src);
- }
- static inline void
- qdf_nbuf_queue_free(qdf_nbuf_queue_t *head)
- {
- __qdf_nbuf_queue_free(head);
- }
- static inline qdf_nbuf_t
- qdf_nbuf_queue_first(qdf_nbuf_queue_t *head)
- {
- return __qdf_nbuf_queue_first(head);
- }
- static inline qdf_nbuf_t qdf_nbuf_next(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_next(buf);
- }
- static inline uint16_t qdf_nbuf_get_protocol(struct sk_buff *skb)
- {
- return __qdf_nbuf_get_protocol(skb);
- }
- static inline uint8_t qdf_nbuf_get_ip_summed(struct sk_buff *skb)
- {
- return __qdf_nbuf_get_ip_summed(skb);
- }
- static inline void qdf_nbuf_set_ip_summed(struct sk_buff *skb,
- uint8_t ip_summed)
- {
- __qdf_nbuf_set_ip_summed(skb, ip_summed);
- }
- static inline void qdf_nbuf_set_next(qdf_nbuf_t this_buf, qdf_nbuf_t next_buf)
- {
- __qdf_nbuf_set_next(this_buf, next_buf);
- }
- static inline void
- qdf_nbuf_set_next_ext(qdf_nbuf_t this_buf, qdf_nbuf_t next_buf)
- {
- __qdf_nbuf_set_next_ext(this_buf, next_buf);
- }
- static inline qdf_nbuf_t qdf_nbuf_next_ext(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_next_ext(buf);
- }
- static inline void
- qdf_nbuf_append_ext_list(qdf_nbuf_t head_buf, qdf_nbuf_t ext_list,
- qdf_size_t ext_len)
- {
- __qdf_nbuf_append_ext_list(head_buf, ext_list, ext_len);
- }
- static inline qdf_nbuf_t qdf_nbuf_get_ext_list(qdf_nbuf_t head_buf)
- {
- return (qdf_nbuf_t)__qdf_nbuf_get_ext_list(head_buf);
- }
- static inline qdf_nbuf_tx_cksum_t qdf_nbuf_get_tx_cksum(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_tx_cksum(buf);
- }
- static inline void
- qdf_nbuf_set_rx_cksum(qdf_nbuf_t buf, qdf_nbuf_rx_cksum_t *cksum)
- {
- __qdf_nbuf_set_rx_cksum(buf, cksum);
- }
- static inline uint8_t qdf_nbuf_get_tid(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_tid(buf);
- }
- static inline void qdf_nbuf_set_tid(qdf_nbuf_t buf, uint8_t tid)
- {
- __qdf_nbuf_set_tid(buf, tid);
- }
- static inline uint8_t qdf_nbuf_get_exemption_type(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_exemption_type(buf);
- }
- static inline void qdf_nbuf_set_protocol(qdf_nbuf_t buf, uint16_t proto)
- {
- __qdf_nbuf_set_protocol(buf, proto);
- }
- static inline uint8_t qdf_nbuf_trace_get_proto_type(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_trace_get_proto_type(buf);
- }
- static inline void qdf_nbuf_reg_trace_cb(qdf_nbuf_trace_update_t cb_func_ptr)
- {
- __qdf_nbuf_reg_trace_cb(cb_func_ptr);
- }
- static inline void
- qdf_nbuf_set_tx_parallel_dnload_frm(qdf_nbuf_t buf, uint8_t candi)
- {
- __qdf_nbuf_set_tx_htt2_frm(buf, candi);
- }
- static inline uint8_t qdf_nbuf_get_tx_parallel_dnload_frm(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_tx_htt2_frm(buf);
- }
- static inline enum qdf_proto_subtype
- qdf_nbuf_get_dhcp_subtype(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_get_dhcp_subtype(qdf_nbuf_data(buf));
- }
- static inline enum qdf_proto_subtype
- qdf_nbuf_data_get_dhcp_subtype(uint8_t *data)
- {
- return __qdf_nbuf_data_get_dhcp_subtype(data);
- }
- static inline enum qdf_proto_subtype
- qdf_nbuf_get_eapol_subtype(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_get_eapol_subtype(qdf_nbuf_data(buf));
- }
- static inline enum qdf_proto_subtype
- qdf_nbuf_data_get_eapol_subtype(uint8_t *data)
- {
- return __qdf_nbuf_data_get_eapol_subtype(data);
- }
- static inline enum qdf_proto_subtype
- qdf_nbuf_get_arp_subtype(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_get_arp_subtype(qdf_nbuf_data(buf));
- }
- static inline enum qdf_proto_subtype
- qdf_nbuf_data_get_arp_subtype(uint8_t *data)
- {
- return __qdf_nbuf_data_get_arp_subtype(data);
- }
- static inline enum qdf_proto_subtype
- qdf_nbuf_get_icmp_subtype(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_get_icmp_subtype(qdf_nbuf_data(buf));
- }
- static inline enum qdf_proto_subtype
- qdf_nbuf_data_get_icmp_subtype(uint8_t *data)
- {
- return __qdf_nbuf_data_get_icmp_subtype(data);
- }
- static inline enum qdf_proto_subtype
- qdf_nbuf_get_icmpv6_subtype(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_get_icmpv6_subtype(qdf_nbuf_data(buf));
- }
- static inline enum qdf_proto_subtype
- qdf_nbuf_data_get_icmpv6_subtype(uint8_t *data)
- {
- return __qdf_nbuf_data_get_icmpv6_subtype(data);
- }
- static inline uint8_t
- qdf_nbuf_data_get_ipv4_proto(uint8_t *data)
- {
- return __qdf_nbuf_data_get_ipv4_proto(data);
- }
- static inline uint8_t
- qdf_nbuf_data_get_ipv6_proto(uint8_t *data)
- {
- return __qdf_nbuf_data_get_ipv6_proto(data);
- }
- static inline
- bool qdf_nbuf_is_ipv4_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_ipv4_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_ipv4_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv4_pkt(data);
- }
- static inline
- bool qdf_nbuf_is_ipv4_dhcp_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_ipv4_dhcp_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_ipv4_dhcp_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv4_dhcp_pkt(data);
- }
- static inline
- bool qdf_nbuf_is_ipv4_eapol_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_ipv4_eapol_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_ipv4_eapol_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv4_eapol_pkt(data);
- }
- static inline
- bool qdf_nbuf_is_ipv4_wapi_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_is_ipv4_wapi_pkt(buf);
- }
- static inline
- bool qdf_nbuf_is_ipv4_arp_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_ipv4_arp_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_ipv4_arp_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv4_arp_pkt(data);
- }
- static inline
- bool qdf_nbuf_is_ipv6_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_ipv6_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_ipv6_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv6_pkt(data);
- }
- static inline
- bool qdf_nbuf_data_is_ipv4_mcast_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv4_mcast_pkt(data);
- }
- static inline
- bool qdf_nbuf_data_is_ipv6_mcast_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv6_mcast_pkt(data);
- }
- static inline
- bool qdf_nbuf_is_icmp_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_icmp_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_icmp_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_icmp_pkt(data);
- }
- static inline
- bool qdf_nbuf_is_icmpv6_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_icmpv6_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_icmpv6_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_icmpv6_pkt(data);
- }
- static inline
- bool qdf_nbuf_is_ipv4_udp_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_ipv4_udp_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_ipv4_udp_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv4_udp_pkt(data);
- }
- static inline
- bool qdf_nbuf_is_ipv4_tcp_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_ipv4_tcp_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_ipv4_tcp_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv4_tcp_pkt(data);
- }
- static inline
- bool qdf_nbuf_is_ipv6_udp_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_ipv6_udp_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_ipv6_udp_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv6_udp_pkt(data);
- }
- static inline
- bool qdf_nbuf_is_ipv6_tcp_pkt(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_is_ipv6_tcp_pkt(qdf_nbuf_data(buf));
- }
- static inline
- bool qdf_nbuf_data_is_ipv6_tcp_pkt(uint8_t *data)
- {
- return __qdf_nbuf_data_is_ipv6_tcp_pkt(data);
- }
- static inline void qdf_invalidate_range(void *start, void *end)
- {
- __qdf_invalidate_range(start, end);
- }
- static inline void qdf_nbuf_reset_num_frags(qdf_nbuf_t buf)
- {
- __qdf_nbuf_reset_num_frags(buf);
- }
- static inline void qdf_dmaaddr_to_32s(qdf_dma_addr_t dmaaddr,
- uint32_t *lo, uint32_t *hi)
- {
- return __qdf_dmaaddr_to_32s(dmaaddr, lo, hi);
- }
- static inline uint8_t qdf_nbuf_is_tso(qdf_nbuf_t nbuf)
- {
- return __qdf_nbuf_is_tso(nbuf);
- }
- static inline uint32_t qdf_nbuf_get_tso_info(qdf_device_t osdev,
- qdf_nbuf_t nbuf, struct qdf_tso_info_t *tso_info)
- {
- return __qdf_nbuf_get_tso_info(osdev, nbuf, tso_info);
- }
- static inline uint32_t qdf_nbuf_get_tso_num_seg(qdf_nbuf_t nbuf)
- {
- return __qdf_nbuf_get_tso_num_seg(nbuf);
- }
- static inline qdf_nbuf_t qdf_nbuf_inc_users(qdf_nbuf_t nbuf)
- {
- return __qdf_nbuf_inc_users(nbuf);
- }
- static inline int qdf_nbuf_get_users(qdf_nbuf_t nbuf)
- {
- return __qdf_nbuf_get_users(nbuf);
- }
- static inline uint32_t qdf_nbuf_data_attr_get(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_data_attr_get(buf);
- }
- static inline
- void qdf_nbuf_data_attr_set(qdf_nbuf_t buf, uint32_t data_attr)
- {
- __qdf_nbuf_data_attr_set(buf, data_attr);
- }
- #define qdf_nbuf_tx_info_get __qdf_nbuf_tx_info_get
- void qdf_nbuf_set_state(qdf_nbuf_t nbuf, uint8_t current_state);
- void qdf_nbuf_tx_desc_count_display(void);
- void qdf_nbuf_tx_desc_count_clear(void);
- static inline qdf_nbuf_t
- qdf_nbuf_realloc_headroom(qdf_nbuf_t buf, uint32_t headroom)
- {
- return __qdf_nbuf_realloc_headroom(buf, headroom);
- }
- static inline qdf_nbuf_t
- qdf_nbuf_realloc_tailroom(qdf_nbuf_t buf, uint32_t tailroom)
- {
- return __qdf_nbuf_realloc_tailroom(buf, tailroom);
- }
- static inline qdf_nbuf_t
- qdf_nbuf_expand(qdf_nbuf_t buf, uint32_t headroom, uint32_t tailroom)
- {
- return __qdf_nbuf_expand(buf, headroom, tailroom);
- }
- static inline qdf_nbuf_t
- qdf_nbuf_unshare(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_unshare(buf);
- }
- static inline bool
- qdf_nbuf_is_cloned(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_is_cloned(buf);
- }
- static inline void
- qdf_nbuf_frag_info(qdf_nbuf_t buf, qdf_sglist_t *sg)
- {
- __qdf_nbuf_frag_info(buf, sg);
- }
- static inline qdf_nbuf_tx_cksum_t
- qdf_nbuf_tx_cksum_info(qdf_nbuf_t buf, uint8_t **hdr_off, uint8_t **where)
- {
- return __qdf_nbuf_tx_cksum_info(buf, hdr_off, where);
- }
- static inline void qdf_nbuf_reset_ctxt(__qdf_nbuf_t nbuf)
- {
- __qdf_nbuf_reset_ctxt(nbuf);
- }
- static inline void
- qdf_nbuf_set_rx_info(__qdf_nbuf_t nbuf, void *info, uint32_t len)
- {
- __qdf_nbuf_set_rx_info(nbuf, info, len);
- }
- static inline void *qdf_nbuf_get_rx_info(__qdf_nbuf_t nbuf)
- {
- return __qdf_nbuf_get_rx_info(nbuf);
- }
- static inline void qdf_nbuf_init(qdf_nbuf_t buf)
- {
- __qdf_nbuf_init(buf);
- }
- static inline void *qdf_nbuf_network_header(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_network_header(buf);
- }
- static inline void *qdf_nbuf_transport_header(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_transport_header(buf);
- }
- static inline qdf_size_t qdf_nbuf_tcp_tso_size(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_tcp_tso_size(buf);
- }
- static inline void *qdf_nbuf_get_cb(qdf_nbuf_t nbuf)
- {
- return __qdf_nbuf_get_cb(nbuf);
- }
- static inline uint32_t qdf_nbuf_get_nr_frags(qdf_nbuf_t nbuf)
- {
- return __qdf_nbuf_get_nr_frags(nbuf);
- }
- static inline qdf_size_t qdf_nbuf_headlen(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_headlen(buf);
- }
- static inline QDF_STATUS qdf_nbuf_frag_map(qdf_device_t osdev,
- qdf_nbuf_t buf, int offset,
- qdf_dma_dir_t dir, int cur_frag)
- {
- return __qdf_nbuf_frag_map(osdev, buf, offset, dir, cur_frag);
- }
- static inline bool qdf_nbuf_tso_tcp_v4(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_tso_tcp_v4(buf);
- }
- static inline bool qdf_nbuf_tso_tcp_v6(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_tso_tcp_v6(buf);
- }
- static inline uint32_t qdf_nbuf_tcp_seq(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_tcp_seq(buf);
- }
- static inline qdf_size_t qdf_nbuf_l2l3l4_hdr_len(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_l2l3l4_hdr_len(buf);
- }
- static inline bool qdf_nbuf_is_nonlinear(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_is_nonlinear(buf);
- }
- static inline uint32_t
- qdf_nbuf_get_frag_size(qdf_nbuf_t buf, uint32_t frag_num)
- {
- return __qdf_nbuf_get_frag_size(buf, frag_num);
- }
- static inline uint32_t qdf_nbuf_get_priority(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_priority(buf);
- }
- static inline void qdf_nbuf_set_priority(qdf_nbuf_t buf, uint32_t p)
- {
- __qdf_nbuf_set_priority(buf, p);
- }
- static inline uint16_t
- qdf_nbuf_get_queue_mapping(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_queue_mapping(buf);
- }
- static inline uint8_t *
- qdf_nbuf_get_priv_ptr(qdf_nbuf_t buf)
- {
- return __qdf_nbuf_get_priv_ptr(buf);
- }
- unsigned int qdf_nbuf_update_radiotap(struct mon_rx_status *rx_status,
- qdf_nbuf_t nbuf, uint32_t headroom_sz);
- static inline void
- qdf_nbuf_mark_wakeup_frame(qdf_nbuf_t buf)
- {
- __qdf_nbuf_mark_wakeup_frame(buf);
- }
- #endif
|