@@ -2144,8 +2144,9 @@ mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len,
21442144 is_scanning_required = 1 ;
21452145 } else {
21462146 mwifiex_dbg (priv -> adapter , MSG ,
2147- "info: trying to associate to '%s' bssid %pM\n" ,
2148- (char * )req_ssid .ssid , bss -> bssid );
2147+ "info: trying to associate to '%.*s' bssid %pM\n" ,
2148+ req_ssid .ssid_len , (char * )req_ssid .ssid ,
2149+ bss -> bssid );
21492150 memcpy (& priv -> cfg_bssid , bss -> bssid , ETH_ALEN );
21502151 break ;
21512152 }
@@ -2202,8 +2203,8 @@ mwifiex_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
22022203 }
22032204
22042205 mwifiex_dbg (adapter , INFO ,
2205- "info: Trying to associate to %s and bssid %pM\n" ,
2206- (char * )sme -> ssid , sme -> bssid );
2206+ "info: Trying to associate to %.* s and bssid %pM\n" ,
2207+ (int ) sme -> ssid_len , ( char * )sme -> ssid , sme -> bssid );
22072208
22082209 ret = mwifiex_cfg80211_assoc (priv , sme -> ssid_len , sme -> ssid , sme -> bssid ,
22092210 priv -> bss_mode , sme -> channel , sme , 0 );
@@ -2333,8 +2334,8 @@ mwifiex_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *dev,
23332334 }
23342335
23352336 mwifiex_dbg (priv -> adapter , MSG ,
2336- "info: trying to join to %s and bssid %pM\n" ,
2337- (char * )params -> ssid , params -> bssid );
2337+ "info: trying to join to %.* s and bssid %pM\n" ,
2338+ params -> ssid_len , (char * )params -> ssid , params -> bssid );
23382339
23392340 mwifiex_set_ibss_params (priv , params );
23402341
0 commit comments