Ummm, if you change pkt_len to be a proper __be16, then you don't need thesecasts when passing it to ntohs().
Hi David I have fixed this now in v2. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project