mwifiex: move debug_data dump function to common utililty file