added conversion functions for wifi frames