Explorar el Código

qcacmn: Print input bw in tdls_get_wmi_offchannel_bw for error case

In tdls_get_wmi_offchannel_bw in default case uninitialized output
bw is printed instead input bw. This will result in printing
uninitialized variable.

Change-Id: I7819dad3426fbe1b4c4626bc69744e3ee59ba18f
CRs-Fixed: 2329333
Rajesh Chauhan hace 6 años
padre
commit
4712f47e43
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      wmi_unified_sta_tlv.c

+ 2 - 2
wmi_unified_sta_tlv.c

@@ -628,8 +628,8 @@ static uint8_t tdls_get_wmi_offchannel_bw(uint16_t tdls_off_ch_bw_offset)
 	case BWALL:
 		off_chan_bw = WMI_TDLS_OFFCHAN_160MHZ;
 	default:
-		WMI_LOGD(FL("unknown tdls_offchannel bw offset %d"),
-			 off_chan_bw);
+		WMI_LOGD(FL("unknown tdls offchannel bw offset %d"),
+			 tdls_off_ch_bw_offset);
 		off_chan_bw = WMI_TDLS_OFFCHAN_20MHZ;
 	}
 	return off_chan_bw;