• This macro allows for writing frames into a buffer. The macro operates in three steps: (1) Compute the frame’s resulting length by adding up all headers and IEs. (2) Request a buffer from a given provider with a minimum buffer length of the computed length. (3) Write all headers and IEs into the given buffer.