BigW Consortium Gitlab

Commit 0f56ba5b by David Clark

Updated log msgs for MT7697 UART and WiFi drivers

parent 01f59040
...@@ -60,6 +60,8 @@ static int mt7697_uart_rx_poll(struct mt7697_uart_info* uart_info) ...@@ -60,6 +60,8 @@ static int mt7697_uart_rx_poll(struct mt7697_uart_info* uart_info)
while (1) { while (1) {
mask = uart_info->fd_hndl->f_op->poll( mask = uart_info->fd_hndl->f_op->poll(
uart_info->fd_hndl, &table.pt); uart_info->fd_hndl, &table.pt);
dev_dbg(uart_info->dev, "%s(): Rx data mask(0x%08x)\n",
__func__, mask);
if (mask & POLLERR) { if (mask & POLLERR) {
dev_warn(uart_info->dev, dev_warn(uart_info->dev,
"%s(): poll error\n", __func__); "%s(): poll error\n", __func__);
...@@ -71,8 +73,6 @@ static int mt7697_uart_rx_poll(struct mt7697_uart_info* uart_info) ...@@ -71,8 +73,6 @@ static int mt7697_uart_rx_poll(struct mt7697_uart_info* uart_info)
ret = -EPIPE; ret = -EPIPE;
goto cleanup; goto cleanup;
} else if (mask & (POLLRDNORM | POLLRDBAND | POLLIN)) { } else if (mask & (POLLRDNORM | POLLRDBAND | POLLIN)) {
dev_dbg(uart_info->dev, "%s(): Rx data mask(0x%08x)\n",
__func__, mask);
break; break;
} }
......
...@@ -49,9 +49,10 @@ static int mt7697_proc_mac_addr(const struct mt7697_rsp_hdr* rsp, ...@@ -49,9 +49,10 @@ static int mt7697_proc_mac_addr(const struct mt7697_rsp_hdr* rsp,
ret = (ret < 0) ? ret:-EIO; ret = (ret < 0) ? ret:-EIO;
goto cleanup; goto cleanup;
} }
#ifdef DEBUG
print_hex_dump(KERN_DEBUG, DRVNAME" MAC address ", print_hex_dump(KERN_DEBUG, DRVNAME" MAC address ",
DUMP_PREFIX_OFFSET, 16, 1, addr, ETH_ALEN, 0); DUMP_PREFIX_OFFSET, 16, 1, addr, ETH_ALEN, 0);
#endif
memcpy(cfg->mac_addr.addr, addr, ETH_ALEN); memcpy(cfg->mac_addr.addr, addr, ETH_ALEN);
rtnl_lock(); rtnl_lock();
...@@ -184,9 +185,11 @@ static int mt7697_proc_get_cfg(const struct mt7697_rsp_hdr* rsp, ...@@ -184,9 +185,11 @@ static int mt7697_proc_get_cfg(const struct mt7697_rsp_hdr* rsp,
} }
if (wifi_cfg->sta.bssid_present) { if (wifi_cfg->sta.bssid_present) {
#ifdef DEBUG
print_hex_dump(KERN_DEBUG, DRVNAME"STA BSSID ", print_hex_dump(KERN_DEBUG, DRVNAME"STA BSSID ",
DUMP_PREFIX_OFFSET, 16, 1, DUMP_PREFIX_OFFSET, 16, 1,
wifi_cfg->sta.bssid, ETH_ALEN, 0); wifi_cfg->sta.bssid, ETH_ALEN, 0);
#endif
} }
dev_dbg(cfg->dev, "%s(): STA passphrase len(%u)\n", dev_dbg(cfg->dev, "%s(): STA passphrase len(%u)\n",
...@@ -418,9 +421,10 @@ static int mt7697_proc_scan_ind(const struct mt7697_rsp_hdr* rsp, ...@@ -418,9 +421,10 @@ static int mt7697_proc_scan_ind(const struct mt7697_rsp_hdr* rsp,
ret = -ENOMEM; ret = -ENOMEM;
goto cleanup; goto cleanup;
} }
#ifdef DEBUG
print_hex_dump(KERN_DEBUG, DRVNAME" BSS BSSID ", print_hex_dump(KERN_DEBUG, DRVNAME" BSS BSSID ",
DUMP_PREFIX_OFFSET, 16, 1, bss->bssid, ETH_ALEN, 0); DUMP_PREFIX_OFFSET, 16, 1, bss->bssid, ETH_ALEN, 0);
#endif
dev_dbg(cfg->dev, dev_dbg(cfg->dev,
"%s(): BSS signal(%d) scan width(%u) cap(0x%08x)\n", "%s(): BSS signal(%d) scan width(%u) cap(0x%08x)\n",
__func__, bss->signal, bss->scan_width, __func__, bss->signal, bss->scan_width,
...@@ -569,10 +573,10 @@ static int mt7697_proc_connect_ind(const struct mt7697_rsp_hdr* rsp, ...@@ -569,10 +573,10 @@ static int mt7697_proc_connect_ind(const struct mt7697_rsp_hdr* rsp,
ret = (ret < 0) ? ret:-EIO; ret = (ret < 0) ? ret:-EIO;
goto cleanup; goto cleanup;
} }
#ifdef DEBUG
print_hex_dump(KERN_DEBUG, DRVNAME" BSSID ", print_hex_dump(KERN_DEBUG, DRVNAME" BSSID ",
DUMP_PREFIX_OFFSET, 16, 1, bssid, ETH_ALEN, 0); DUMP_PREFIX_OFFSET, 16, 1, bssid, ETH_ALEN, 0);
#endif
if (list_empty(&cfg->vif_list)) { if (list_empty(&cfg->vif_list)) {
dev_dbg(cfg->dev, "%s(): no interfaces\n", __func__); dev_dbg(cfg->dev, "%s(): no interfaces\n", __func__);
goto cleanup; goto cleanup;
...@@ -662,10 +666,10 @@ static int mt7697_proc_disconnect_ind(struct mt7697_cfg80211_info *cfg) ...@@ -662,10 +666,10 @@ static int mt7697_proc_disconnect_ind(struct mt7697_cfg80211_info *cfg)
ret = (ret < 0) ? ret:-EIO; ret = (ret < 0) ? ret:-EIO;
goto cleanup; goto cleanup;
} }
#ifdef DEBUG
print_hex_dump(KERN_DEBUG, DRVNAME" BSSID ", print_hex_dump(KERN_DEBUG, DRVNAME" BSSID ",
DUMP_PREFIX_OFFSET, 16, 1, bssid, ETH_ALEN, 0); DUMP_PREFIX_OFFSET, 16, 1, bssid, ETH_ALEN, 0);
#endif
if (list_empty(&cfg->vif_list)) { if (list_empty(&cfg->vif_list)) {
dev_dbg(cfg->dev, "%s(): no interfaces\n", __func__); dev_dbg(cfg->dev, "%s(): no interfaces\n", __func__);
goto cleanup; goto cleanup;
...@@ -1385,9 +1389,11 @@ int mt7697_wr_scan_req(const struct mt7697_cfg80211_info *cfg, u32 if_idx, ...@@ -1385,9 +1389,11 @@ int mt7697_wr_scan_req(const struct mt7697_cfg80211_info *cfg, u32 if_idx,
dev_dbg(cfg->dev, "%s(): ssid len(%d)\n", dev_dbg(cfg->dev, "%s(): ssid len(%d)\n",
__func__, req->ssids[0].ssid_len); __func__, req->ssids[0].ssid_len);
scan_req.ssid_len = req->ssids[0].ssid_len; scan_req.ssid_len = req->ssids[0].ssid_len;
#ifdef DEBUG
print_hex_dump(KERN_DEBUG, DRVNAME" SSID ", print_hex_dump(KERN_DEBUG, DRVNAME" SSID ",
DUMP_PREFIX_OFFSET, 16, 1, req->ssids[0].ssid, DUMP_PREFIX_OFFSET, 16, 1, req->ssids[0].ssid,
req->ssids[0].ssid_len, 0); req->ssids[0].ssid_len, 0);
#endif
memcpy(scan_req.ssid, req->ssids[0].ssid, memcpy(scan_req.ssid, req->ssids[0].ssid,
req->ssids[0].ssid_len); req->ssids[0].ssid_len);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment