WiFi-driven interface

Source: Internet
Author: User

WiFi drive through the registration of network devices to the kernel, the application of WiFi-driven operations can be created by the socket, and then through the socket number, the driver to do Ioctrl.

When inserting a card, orinoco_cs, like a traditional network device driver, invokes Register_netdev to obtain the ETHX network interface name assigned to the WLAN interface. It also registers an interrupt service routine address to service the interruption of wireless data. The interrupt handler is part of the Orinoco module and interacts with the Linux network stack. The main data structure used by Linux network stacks is the Sk_buff architecture (defined in Include/linux/skbuff.h, which includes control information about a block of memory attached to it). Sk_buffs provides an effective buffer handling and flow control mechanism for all network layers. The network device driver executes a DEV_ALLOC_SKB and a skb_put to populate a sk_buff with IP data and then transmits the Sk_buff to the TCP/IP stack by calling Netif_rx. The Orinoco Interrupt service routine populates sk_buffs with data received from the WLAN and passes it to the IP stack via NETIF_RX.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.