mirror of
https://github.com/proski/madwifi
synced 2025-02-21 09:44:31 +03:00

I've simplified the buffer initialization code so that it always allocates things as if there were one or more monitor VAPs. This is defensive since monitor VAPs can are created and/or destroyed while the radio is up. The old logic was basically changing the behavior of the initialization function dynamically based on the presence of a monitor VAP but could lead to a mixed set of buffers. The revised code keeps all the buffers the same and make sure there is room for a radiotap or prism header if necessary in advance. Without this change, even after adding a monitor VAP you are going to pull SKBs that are too small for a while. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3518 0192ed92-7a03-0410-a25b-9323aeb14dbd