This is a simple m-file to calculate the FCS field of the MAC frame for the standard. The FCS field is calculated over the MHR and the MAC payload and uses a 16CRC.
Thank you very much. I did not understand the specification completely. I was always computing the xor for individual bits and not using this result while doing a left shift.
Thanks for code and the understanding.
appreciate your help and support.