The following Matlab project contains the source code and Matlab examples used for 802.11g wlan phy model.
Modulator has been initialized as
% number of bits per symbol
switch modulation
case 'BPSK', Nb1 = 1;
case 'QPSK', Nb1 = 2;
case '16-QAM', Nb1 = 4;
case '64-QAM', Nb1 = 6;
case 'DQPSK', Nb1 = 8;
case 'OQPSK', Nb1 = 16;
end
modOrder = 2.