Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mt7615: mt7663: get temperature for chip mt7663 #514

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ptpt52
Copy link

@ptpt52 ptpt52 commented Apr 4, 2021

Tested on chip mt7613

@ptpt52
Copy link
Author

ptpt52 commented Apr 4, 2021

ping @nbd168 @ryderlee1110

Tested on chip mt7613

Signed-off-by: Chen Minqiang <[email protected]>
@@ -190,7 +190,7 @@ int mt7615_mcu_parse_response(struct mt76_dev *mdev, int cmd,
ret = *skb->data;
break;
case MCU_EXT_CMD_GET_TEMP:
skb_pull(skb, sizeof(*rxd));
skb_pull(skb, sizeof(*rxd) + 4 * is_mt7663(mdev));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
skb_pull(skb, sizeof(*rxd) + 4 * is_mt7663(mdev));
skb_pull(skb, sizeof(*rxd) + is_mt7663(mdev)?4:0);

A bit more readable/robust imho...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants