wifi: Update example code from protocol 1.0 to 2.0