Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353975
b: refs/heads/master
c: 0024a1e
h: refs/heads/master
i:
  353973: dbf3352
  353971: b4b920f
  353967: ddc6a38
v: v3
  • Loading branch information
Przemo Firszt authored and Greg Kroah-Hartman committed Jan 12, 2013
1 parent bdd097d commit fbdfba7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 87a573ada017b40facab87b149fcbb3344eab9e8
refs/heads/master: 0024a1e73404b06a302f39eb3ceb15d9d741c552
6 changes: 2 additions & 4 deletions trunk/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ static inline char *translate_scan(struct _adapter *padapter,
/* Add the ESSID */
iwe.cmd = SIOCGIWESSID;
iwe.u.data.flags = 1;
iwe.u.data.length = (u16)min((u16)pnetwork->network.Ssid.SsidLength,
(u16)32);
iwe.u.data.length = min_t(u32, pnetwork->network.Ssid.SsidLength, 32);
start = iwe_stream_add_point(info, start, stop, &iwe,
pnetwork->network.Ssid.Ssid);
/* parsing HT_CAP_IE */
Expand Down Expand Up @@ -1194,8 +1193,7 @@ static int r8711_wx_set_scan(struct net_device *dev,
if (wrqu->data.flags & IW_SCAN_THIS_ESSID) {
struct ndis_802_11_ssid ssid;
unsigned long irqL;
u32 len = (u32) min((u8)req->essid_len,
(u8)IW_ESSID_MAX_SIZE);
u32 len = min_t(u8, req->essid_len, IW_ESSID_MAX_SIZE);
memset((unsigned char *)&ssid, 0,
sizeof(struct ndis_802_11_ssid));
memcpy(ssid.Ssid, req->essid, len);
Expand Down

0 comments on commit fbdfba7

Please sign in to comment.