* [PATCH RESEND 1/4] Staging: rtl8712: Fix warning prefer eth_broadcast_addr() over memset()
2015-10-14 18:25 [PATCH RESEND 0/4] Staging: rtl8712: Fix coding style warnings Punit Vara
@ 2015-10-14 18:25 ` Punit Vara
2015-10-14 18:25 ` [PATCH v2 2/4] Staging: rtl8712: Use ether_addr_equal() over memcmp() Punit Vara
` (2 subsequent siblings)
3 siblings, 0 replies; 18+ messages in thread
From: Punit Vara @ 2015-10-14 18:25 UTC (permalink / raw)
To: gregkh
Cc: Larry.Finger, devel, Julia.Lawall, sudipm.mukherjee,
dan.carpenter, linux-kernel, Punit Vara
This patch is to the rtl871x_ioctl_linux.c that fixes up following
warning by checkpatch.pl:
-Prefer eth_broadcast_addr() over memset()
Signed-off-by: Punit Vara <punitvara@gmail.com>
---
drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
index 143be0f..2ba055d 100644
--- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
+++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
@@ -1811,8 +1811,7 @@ static int r871x_wx_set_enc_ext(struct net_device *dev,
if (param == NULL)
return -ENOMEM;
param->cmd = IEEE_CMD_SET_ENCRYPTION;
- memset(param->sta_addr, 0xff, ETH_ALEN);
-
+ eth_broadcast_addr(param->sta_addr);
strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN);
if (pext->ext_flags & IW_ENCODE_EXT_GROUP_KEY)
param->u.crypt.set_tx = 0;
--
2.5.3
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH v2 2/4] Staging: rtl8712: Use ether_addr_equal() over memcmp()
2015-10-14 18:25 [PATCH RESEND 0/4] Staging: rtl8712: Fix coding style warnings Punit Vara
2015-10-14 18:25 ` [PATCH RESEND 1/4] Staging: rtl8712: Fix warning prefer eth_broadcast_addr() over memset() Punit Vara
@ 2015-10-14 18:25 ` Punit Vara
2015-10-14 18:25 ` [PATCH RESEND 3/4] Staging: rtl8712: Coding style warnings fix for block comments Punit Vara
2015-10-14 18:25 ` [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test Punit Vara
3 siblings, 0 replies; 18+ messages in thread
From: Punit Vara @ 2015-10-14 18:25 UTC (permalink / raw)
To: gregkh
Cc: Larry.Finger, devel, Julia.Lawall, sudipm.mukherjee,
dan.carpenter, linux-kernel, Punit Vara
This patch is to the rtl871x_ioctl_linux.c file that fixes up following
warning reported by checkpatch.pl :
-Prefer ether_addr_equal() or ether_addr_equal_unaligned() over memcmp()
bssid and pnetwork->network.MacAddress both are 6 byte
array which aligned with u16
Signed-off-by: Punit Vara <punitvara@gmail.com>
---
drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
index 143be0f..b19556a 100644
--- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
+++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
@@ -2008,7 +2008,7 @@ static int r871x_get_ap_info(struct net_device *dev,
return -EINVAL;
}
netdev_info(dev, "r8712u: BSSID:%pM\n", bssid);
- if (!memcmp(bssid, pnetwork->network.MacAddress, ETH_ALEN)) {
+ if (ether_addr_equal(bssid, pnetwork->network.MacAddress)) {
/* BSSID match, then check if supporting wpa/wpa2 */
pbuf = r8712_get_wpa_ie(&pnetwork->network.IEs[12],
&wpa_ielen, pnetwork->network.IELength-12);
--
2.5.3
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH RESEND 3/4] Staging: rtl8712: Coding style warnings fix for block comments
2015-10-14 18:25 [PATCH RESEND 0/4] Staging: rtl8712: Fix coding style warnings Punit Vara
2015-10-14 18:25 ` [PATCH RESEND 1/4] Staging: rtl8712: Fix warning prefer eth_broadcast_addr() over memset() Punit Vara
2015-10-14 18:25 ` [PATCH v2 2/4] Staging: rtl8712: Use ether_addr_equal() over memcmp() Punit Vara
@ 2015-10-14 18:25 ` Punit Vara
2015-10-14 18:25 ` [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test Punit Vara
3 siblings, 0 replies; 18+ messages in thread
From: Punit Vara @ 2015-10-14 18:25 UTC (permalink / raw)
To: gregkh
Cc: Larry.Finger, devel, Julia.Lawall, sudipm.mukherjee,
dan.carpenter, linux-kernel, Punit Vara
This patch is to the rtl871x_ioctl_linux.c file that fixes up following
warnings reported by checkpatch.pl :
-Block comments use * on subsequent lines
-Block comments use a trailing */ on a separate line
Signed-off-by: Punit Vara <punitvara@gmail.com>
---
drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
index 1c9092e..fc1028a 100644
--- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
+++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
@@ -797,13 +797,13 @@ static int r871x_wx_set_pmkid(struct net_device *dev,
int intReturn = false;
/*
- There are the BSSID information in the bssid.sa_data array.
- If cmd is IW_PMKSA_FLUSH, it means the wpa_supplicant wants to clear
- all the PMKID information. If cmd is IW_PMKSA_ADD, it means the
- wpa_supplicant wants to add a PMKID/BSSID to driver.
- If cmd is IW_PMKSA_REMOVE, it means the wpa_supplicant wants to
- remove a PMKID/BSSID from driver.
-*/
+ * There are the BSSID information in the bssid.sa_data array.
+ * If cmd is IW_PMKSA_FLUSH, it means the wpa_supplicant wants to clear
+ * all the PMKID information. If cmd is IW_PMKSA_ADD, it means the
+ * wpa_supplicant wants to add a PMKID/BSSID to driver.
+ * If cmd is IW_PMKSA_REMOVE, it means the wpa_supplicant wants to
+ * remove a PMKID/BSSID from driver.
+ */
if (pPMK == NULL)
return -EINVAL;
memcpy(strIssueBssid, pPMK->bssid.sa_data, ETH_ALEN);
@@ -818,7 +818,8 @@ static int r871x_wx_set_pmkid(struct net_device *dev,
if (!memcmp(psecuritypriv->PMKIDList[j].Bssid,
strIssueBssid, ETH_ALEN)) {
/* BSSID is matched, the same AP => rewrite
- * with new PMKID. */
+ * with new PMKID.
+ */
netdev_info(dev, "r8712u: %s: BSSID exists in the PMKList.\n",
__func__);
memcpy(psecuritypriv->PMKIDList[j].PMKID,
@@ -850,7 +851,8 @@ static int r871x_wx_set_pmkid(struct net_device *dev,
if (!memcmp(psecuritypriv->PMKIDList[j].Bssid,
strIssueBssid, ETH_ALEN)) {
/* BSSID is matched, the same AP => Remove
- * this PMKID information and reset it. */
+ * this PMKID information and reset it.
+ */
eth_zero_addr(psecuritypriv->PMKIDList[j].Bssid);
psecuritypriv->PMKIDList[j].bUsed = false;
break;
@@ -1587,7 +1589,8 @@ static int r8711_wx_set_enc(struct net_device *dev,
} else {
wep.KeyLength = 0;
if (keyindex_provided == 1) { /* set key_id only, no given
- * KeyMaterial(erq->length==0).*/
+ * KeyMaterial(erq->length==0).
+ */
padapter->securitypriv.PrivacyKeyIndex = key;
switch (padapter->securitypriv.DefKeylen[key]) {
case 5:
@@ -2240,7 +2243,8 @@ static iw_handler r8711_handlers[] = {
r8711_wx_set_wap, /* SIOCSIWAP */
r8711_wx_get_wap, /* SIOCGIWAP */
r871x_wx_set_mlme, /* request MLME operation;
- * uses struct iw_mlme */
+ * uses struct iw_mlme
+ */
dummy, /* SIOCGIWAPLIST -- deprecated */
r8711_wx_set_scan, /* SIOCSIWSCAN */
r8711_wx_get_scan, /* SIOCGIWSCAN */
--
2.5.3
^ permalink raw reply related [flat|nested] 18+ messages in thread* [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-14 18:25 [PATCH RESEND 0/4] Staging: rtl8712: Fix coding style warnings Punit Vara
` (2 preceding siblings ...)
2015-10-14 18:25 ` [PATCH RESEND 3/4] Staging: rtl8712: Coding style warnings fix for block comments Punit Vara
@ 2015-10-14 18:25 ` Punit Vara
2015-10-17 5:16 ` Greg KH
3 siblings, 1 reply; 18+ messages in thread
From: Punit Vara @ 2015-10-14 18:25 UTC (permalink / raw)
To: gregkh
Cc: Larry.Finger, devel, Julia.Lawall, sudipm.mukherjee,
dan.carpenter, linux-kernel, Punit Vara
Put constant on the right side of a test.Problem found using checkpatch:
Warning:Comparisons should place the constant on the right side of the test
Signed-off-by: Punit Vara <punitvara@gmail.com>
---
drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
index fc1028a..e9852ae 100644
--- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
+++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
@@ -959,7 +959,7 @@ static int r871x_wx_set_priv(struct net_device *dev,
if (IS_ERR(ext))
return PTR_ERR(ext);
- if (0 == strcasecmp(ext, "RSSI")) {
+ if (strcasecmp(ext, "RSSI") == 0) {
/*Return received signal strength indicator in -db for */
/* current AP */
/*<ssid> Rssi xx */
@@ -976,7 +976,7 @@ static int r871x_wx_set_priv(struct net_device *dev,
} else {
sprintf(ext, "OK");
}
- } else if (0 == strcasecmp(ext, "LINKSPEED")) {
+ } else if (strcasecmp(ext, "LINKSPEED") == 0) {
/*Return link speed in MBPS */
/*LinkSpeed xx */
union iwreq_data wrqd;
@@ -984,30 +984,30 @@ static int r871x_wx_set_priv(struct net_device *dev,
int mbps;
ret_inner = r8711_wx_get_rate(dev, info, &wrqd, extra);
- if (0 != ret_inner)
+ if (ret_inner != 0)
mbps = 0;
else
mbps = wrqd.bitrate.value / 1000000;
sprintf(ext, "LINKSPEED %d", mbps);
- } else if (0 == strcasecmp(ext, "MACADDR")) {
+ } else if (strcasecmp(ext, "MACADDR") == 0) {
/*Return mac address of the station */
/* Macaddr = xx:xx:xx:xx:xx:xx */
sprintf(ext, "MACADDR = %pM", dev->dev_addr);
- } else if (0 == strcasecmp(ext, "SCAN-ACTIVE")) {
+ } else if (strcasecmp(ext, "SCAN-ACTIVE") == 0) {
/*Set scan type to active */
/*OK if successful */
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
pmlmepriv->passive_mode = 1;
sprintf(ext, "OK");
- } else if (0 == strcasecmp(ext, "SCAN-PASSIVE")) {
+ } else if (strcasecmp(ext, "SCAN-PASSIVE") == 0) {
/*Set scan type to passive */
/*OK if successful */
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
pmlmepriv->passive_mode = 0;
sprintf(ext, "OK");
- } else if (0 == strncmp(ext, "DCE-E", 5)) {
+ } else if (strncmp(ext, "DCE-E", 5) == 0) {
/*Set scan type to passive */
/*OK if successful */
r8712_disconnectCtrlEx_cmd(padapter
@@ -1017,7 +1017,7 @@ static int r871x_wx_set_priv(struct net_device *dev,
, 5000 /*u32 firstStageTO */
);
sprintf(ext, "OK");
- } else if (0 == strncmp(ext, "DCE-D", 5)) {
+ } else if (strncmp(ext, "DCE-D", 5) == 0) {
/*Set scan type to passive */
/*OK if successfu */
r8712_disconnectCtrlEx_cmd(padapter
--
2.5.3
^ permalink raw reply related [flat|nested] 18+ messages in thread* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-14 18:25 ` [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test Punit Vara
@ 2015-10-17 5:16 ` Greg KH
2015-10-18 6:32 ` punit vara
0 siblings, 1 reply; 18+ messages in thread
From: Greg KH @ 2015-10-17 5:16 UTC (permalink / raw)
To: Punit Vara
Cc: devel, linux-kernel, Julia.Lawall, sudipm.mukherjee,
dan.carpenter, Larry.Finger
On Wed, Oct 14, 2015 at 11:55:55PM +0530, Punit Vara wrote:
> Put constant on the right side of a test.Problem found using checkpatch:
>
> Warning:Comparisons should place the constant on the right side of the test
>
> Signed-off-by: Punit Vara <punitvara@gmail.com>
> ---
> drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
Didn't apply to my tree :(
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-17 5:16 ` Greg KH
@ 2015-10-18 6:32 ` punit vara
2015-10-18 18:54 ` Tillmann Heidsieck
2015-10-19 2:00 ` Greg KH
0 siblings, 2 replies; 18+ messages in thread
From: punit vara @ 2015-10-18 6:32 UTC (permalink / raw)
To: Greg KH
Cc: devel, linux-kernel, Julia Lawall, Sudip Mukherjee, Dan Carpenter,
Larry Finger
On Sat, Oct 17, 2015 at 10:46 AM, Greg KH <gregkh@linuxfoundation.org> wrote:
> On Wed, Oct 14, 2015 at 11:55:55PM +0530, Punit Vara wrote:
>> Put constant on the right side of a test.Problem found using checkpatch:
>>
>> Warning:Comparisons should place the constant on the right side of the test
>>
>> Signed-off-by: Punit Vara <punitvara@gmail.com>
>> ---
>> drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 16 ++++++++--------
>> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> Didn't apply to my tree :(
In this case what should I do ? Should I do git reset , git pull and
then do changes on latest tree ?
One more thing I would like suggestion how can start switching this
driver to LIB80211 ,MAC80211 ? Which is the first file I should focus
? Simultaneously I am trying to understand the flow of driver . I
would like to know the start point from where I can start doing small
changes.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-18 6:32 ` punit vara
@ 2015-10-18 18:54 ` Tillmann Heidsieck
2015-10-18 19:14 ` Tillmann Heidsieck
2015-10-19 2:00 ` Greg KH
1 sibling, 1 reply; 18+ messages in thread
From: Tillmann Heidsieck @ 2015-10-18 18:54 UTC (permalink / raw)
To: punit vara
Cc: Greg KH, devel, linux-kernel, Julia Lawall, Sudip Mukherjee,
Dan Carpenter, Larry Finger, linux-kernel-owner
Hi,
On 2015-10-18 08:32, punit vara wrote:
> On Sat, Oct 17, 2015 at 10:46 AM, Greg KH <gregkh@linuxfoundation.org>
> wrote:
>> On Wed, Oct 14, 2015 at 11:55:55PM +0530, Punit Vara wrote:
>>> Put constant on the right side of a test.Problem found using
>>> checkpatch:
>>>
>>> Warning:Comparisons should place the constant on the right side of
>>> the test
>>>
>>> Signed-off-by: Punit Vara <punitvara@gmail.com>
>>> ---
>>> drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 16 ++++++++--------
>>> 1 file changed, 8 insertions(+), 8 deletions(-)
>>
>> Didn't apply to my tree :(
> In this case what should I do ? Should I do git reset , git pull and
> then do changes on latest tree ?
>
Greg is probably trying to apply this series to the staging-next branch
of his staging tree[0]
so you need to clone that one, or add it as an additional remote[1] to
your clone of the kernel tree (much better option IMHO). After this you
need to rebase[2] your changes onto the stating-next branch, fix up all
conflicts in your code, and resend the patch.
I hope this helps
Tillmann
[0] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
[1] https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
[2] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-18 18:54 ` Tillmann Heidsieck
@ 2015-10-18 19:14 ` Tillmann Heidsieck
0 siblings, 0 replies; 18+ messages in thread
From: Tillmann Heidsieck @ 2015-10-18 19:14 UTC (permalink / raw)
To: punit vara
Cc: Greg KH, devel, linux-kernel, Julia Lawall, Sudip Mukherjee,
Dan Carpenter, Larry Finger, linux-kernel-owner
On Sun, Oct 18, 2015 at 08:54:57PM +0200, Tillmann Heidsieck wrote:
> Hi,
[...]
> Greg is probably trying to apply this series to the staging-next branch of
> his staging tree[0]
> so you need to clone that one, or add it as an additional remote[1] to your
> clone of the kernel tree (much better option IMHO). After this you need to
> rebase[2] your changes onto the stating-next branch, fix up all conflicts in
> your code, and resend the patch.
>
> I hope this helps
>
> Tillmann
>
> [0] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
> [1] https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
> [2] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
ups, got bitten by my missing c'n'p prowess
[2] https://www.kernel.org/pub/software/scm/git/docs/git-rebase.html
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-18 6:32 ` punit vara
2015-10-18 18:54 ` Tillmann Heidsieck
@ 2015-10-19 2:00 ` Greg KH
2015-10-19 2:44 ` Larry Finger
1 sibling, 1 reply; 18+ messages in thread
From: Greg KH @ 2015-10-19 2:00 UTC (permalink / raw)
To: punit vara
Cc: devel, linux-kernel, Julia Lawall, Sudip Mukherjee, Dan Carpenter,
Larry Finger
On Sun, Oct 18, 2015 at 12:02:53PM +0530, punit vara wrote:
> On Sat, Oct 17, 2015 at 10:46 AM, Greg KH <gregkh@linuxfoundation.org> wrote:
> > On Wed, Oct 14, 2015 at 11:55:55PM +0530, Punit Vara wrote:
> >> Put constant on the right side of a test.Problem found using checkpatch:
> >>
> >> Warning:Comparisons should place the constant on the right side of the test
> >>
> >> Signed-off-by: Punit Vara <punitvara@gmail.com>
> >> ---
> >> drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 16 ++++++++--------
> >> 1 file changed, 8 insertions(+), 8 deletions(-)
> >
> > Didn't apply to my tree :(
> In this case what should I do ? Should I do git reset , git pull and
> then do changes on latest tree ?
That depends on your workflow, how about pulling and then rebase your
branch on mine? That's the easiest workflow to use.
> One more thing I would like suggestion how can start switching this
> driver to LIB80211 ,MAC80211 ? Which is the first file I should focus
> ? Simultaneously I am trying to understand the flow of driver . I
> would like to know the start point from where I can start doing small
> changes.
If you don't understand the wireless stack, I suggest you do some
research on it first, converting a driver to the in-kernel stack is a
_very_ difficult thing and not something that someone without any
experience in this area is going to be able to do easily.
good luck!
greg k-h
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-19 2:00 ` Greg KH
@ 2015-10-19 2:44 ` Larry Finger
2015-10-19 15:21 ` punit vara
0 siblings, 1 reply; 18+ messages in thread
From: Larry Finger @ 2015-10-19 2:44 UTC (permalink / raw)
To: Greg KH, punit vara
Cc: devel, linux-kernel, Julia Lawall, Sudip Mukherjee, Dan Carpenter
On 10/18/2015 09:00 PM, Greg KH wrote:
> On Sun, Oct 18, 2015 at 12:02:53PM +0530, punit vara wrote:
>> One more thing I would like suggestion how can start switching this
>> driver to LIB80211 ,MAC80211 ? Which is the first file I should focus
>> ? Simultaneously I am trying to understand the flow of driver . I
>> would like to know the start point from where I can start doing small
>> changes.
>
> If you don't understand the wireless stack, I suggest you do some
> research on it first, converting a driver to the in-kernel stack is a
> _very_ difficult thing and not something that someone without any
> experience in this area is going to be able to do easily.
I second this suggestion. Your skill level is not nearly sufficient for this
sort of task. Note that there is a group working on driver rtl8192su, which
should be able to replace rtl8712u. The participants are very highly skilled
wireless developers; however, they are having trouble. The internals of the
Realtek chips are not revealed to anyone in any form other than the code they
release.
Larry
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-19 2:44 ` Larry Finger
@ 2015-10-19 15:21 ` punit vara
2015-10-22 19:04 ` punit vara
0 siblings, 1 reply; 18+ messages in thread
From: punit vara @ 2015-10-19 15:21 UTC (permalink / raw)
To: Larry Finger
Cc: Greg KH, devel, linux-kernel, Julia Lawall, Sudip Mukherjee,
Dan Carpenter
On Mon, Oct 19, 2015 at 8:14 AM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> On 10/18/2015 09:00 PM, Greg KH wrote:
>>
>> On Sun, Oct 18, 2015 at 12:02:53PM +0530, punit vara wrote:
>>>
>>> One more thing I would like suggestion how can start switching this
>>> driver to LIB80211 ,MAC80211 ? Which is the first file I should focus
>>> ? Simultaneously I am trying to understand the flow of driver . I
>>> would like to know the start point from where I can start doing small
>>> changes.
>>
>>
>> If you don't understand the wireless stack, I suggest you do some
>> research on it first, converting a driver to the in-kernel stack is a
>> _very_ difficult thing and not something that someone without any
>> experience in this area is going to be able to do easily.
>
>
> I second this suggestion. Your skill level is not nearly sufficient for this
> sort of task. Note that there is a group working on driver rtl8192su, which
> should be able to replace rtl8712u. The participants are very highly skilled
> wireless developers; however, they are having trouble. The internals of the
> Realtek chips are not revealed to anyone in any form other than the code
> they release.
>
> Larry
>
>
Thank you Larry ,Tillman , Greg for your valuable suggestions. I am
interested to learn wireless stack .I have already read wireless wiki
documentation , sort of rtl8712 code , cfg80112 APIs . Yeah I agree
with you Greg and Larry that its _very_ difficult to thing to convert
driver in kernel and also rtl8712 has more files compare to others.
Anyway however difficult or tough it may be but I have to go through
it once to become highly skilled or good engineer . I would give it a
try even if I will fail I believe at least 1% of my knowledge will be
improved . More suggestions are welcome.
I have did
git remote add gregkh
http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
git pull gregkh
git rebase my_local_branch
I have got some conflicts .I can solve them but they are too many . I
am trying to solve it . After that I will soon resend this patch.
Thanks
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-19 15:21 ` punit vara
@ 2015-10-22 19:04 ` punit vara
2015-10-22 19:14 ` Greg KH
2015-10-22 19:22 ` Dan Carpenter
0 siblings, 2 replies; 18+ messages in thread
From: punit vara @ 2015-10-22 19:04 UTC (permalink / raw)
To: Larry Finger
Cc: Greg KH, devel, linux-kernel, Julia Lawall, Sudip Mukherjee,
Dan Carpenter
On Mon, Oct 19, 2015 at 8:51 PM, punit vara <punitvara@gmail.com> wrote:
> On Mon, Oct 19, 2015 at 8:14 AM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
>> On 10/18/2015 09:00 PM, Greg KH wrote:
>>>
>>> On Sun, Oct 18, 2015 at 12:02:53PM +0530, punit vara wrote:
>>>>
>>>> One more thing I would like suggestion how can start switching this
>>>> driver to LIB80211 ,MAC80211 ? Which is the first file I should focus
>>>> ? Simultaneously I am trying to understand the flow of driver . I
>>>> would like to know the start point from where I can start doing small
>>>> changes.
>>>
>>>
>>> If you don't understand the wireless stack, I suggest you do some
>>> research on it first, converting a driver to the in-kernel stack is a
>>> _very_ difficult thing and not something that someone without any
>>> experience in this area is going to be able to do easily.
>>
>>
>> I second this suggestion. Your skill level is not nearly sufficient for this
>> sort of task. Note that there is a group working on driver rtl8192su, which
>> should be able to replace rtl8712u. The participants are very highly skilled
>> wireless developers; however, they are having trouble. The internals of the
>> Realtek chips are not revealed to anyone in any form other than the code
>> they release.
>>
>> Larry
>>
>>
>
>
> Thank you Larry ,Tillman , Greg for your valuable suggestions. I am
> interested to learn wireless stack .I have already read wireless wiki
> documentation , sort of rtl8712 code , cfg80112 APIs . Yeah I agree
> with you Greg and Larry that its _very_ difficult to thing to convert
> driver in kernel and also rtl8712 has more files compare to others.
> Anyway however difficult or tough it may be but I have to go through
> it once to become highly skilled or good engineer . I would give it a
> try even if I will fail I believe at least 1% of my knowledge will be
> improved . More suggestions are welcome.
>
> I have did
>
> git remote add gregkh
> http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
>
> git pull gregkh
>
> git rebase my_local_branch
>
> I have got some conflicts .I can solve them but they are too many . I
> am trying to solve it . After that I will soon resend this patch.
>
> Thanks
@Greg KH
I am working on linux-next .I have tried to rebase my local branch on
your staging tree but I am getting too many conflict .and I have tried
to clone your staging tree separately but due slow internet I am
unable to clone it fully . Is there any other way I can get your
staging tree by downloading ?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-22 19:04 ` punit vara
@ 2015-10-22 19:14 ` Greg KH
2015-10-22 19:22 ` Dan Carpenter
1 sibling, 0 replies; 18+ messages in thread
From: Greg KH @ 2015-10-22 19:14 UTC (permalink / raw)
To: punit vara
Cc: Larry Finger, devel, linux-kernel, Julia Lawall, Sudip Mukherjee,
Dan Carpenter
On Fri, Oct 23, 2015 at 12:34:36AM +0530, punit vara wrote:
> On Mon, Oct 19, 2015 at 8:51 PM, punit vara <punitvara@gmail.com> wrote:
> > On Mon, Oct 19, 2015 at 8:14 AM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> >> On 10/18/2015 09:00 PM, Greg KH wrote:
> >>>
> >>> On Sun, Oct 18, 2015 at 12:02:53PM +0530, punit vara wrote:
> >>>>
> >>>> One more thing I would like suggestion how can start switching this
> >>>> driver to LIB80211 ,MAC80211 ? Which is the first file I should focus
> >>>> ? Simultaneously I am trying to understand the flow of driver . I
> >>>> would like to know the start point from where I can start doing small
> >>>> changes.
> >>>
> >>>
> >>> If you don't understand the wireless stack, I suggest you do some
> >>> research on it first, converting a driver to the in-kernel stack is a
> >>> _very_ difficult thing and not something that someone without any
> >>> experience in this area is going to be able to do easily.
> >>
> >>
> >> I second this suggestion. Your skill level is not nearly sufficient for this
> >> sort of task. Note that there is a group working on driver rtl8192su, which
> >> should be able to replace rtl8712u. The participants are very highly skilled
> >> wireless developers; however, they are having trouble. The internals of the
> >> Realtek chips are not revealed to anyone in any form other than the code
> >> they release.
> >>
> >> Larry
> >>
> >>
> >
> >
> > Thank you Larry ,Tillman , Greg for your valuable suggestions. I am
> > interested to learn wireless stack .I have already read wireless wiki
> > documentation , sort of rtl8712 code , cfg80112 APIs . Yeah I agree
> > with you Greg and Larry that its _very_ difficult to thing to convert
> > driver in kernel and also rtl8712 has more files compare to others.
> > Anyway however difficult or tough it may be but I have to go through
> > it once to become highly skilled or good engineer . I would give it a
> > try even if I will fail I believe at least 1% of my knowledge will be
> > improved . More suggestions are welcome.
> >
> > I have did
> >
> > git remote add gregkh
> > http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
> >
> > git pull gregkh
> >
> > git rebase my_local_branch
> >
> > I have got some conflicts .I can solve them but they are too many . I
> > am trying to solve it . After that I will soon resend this patch.
> >
> > Thanks
>
> @Greg KH
> I am working on linux-next .I have tried to rebase my local branch on
> your staging tree but I am getting too many conflict .and I have tried
> to clone your staging tree separately but due slow internet I am
> unable to clone it fully . Is there any other way I can get your
> staging tree by downloading ?
git.kernel.org is the only location, sorry.
Try starting with a "clean" version of Linus's tree and just add a
branch for my tree, it should be quite a small download.
greg k-h
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-22 19:04 ` punit vara
2015-10-22 19:14 ` Greg KH
@ 2015-10-22 19:22 ` Dan Carpenter
2015-10-22 20:03 ` punit vara
1 sibling, 1 reply; 18+ messages in thread
From: Dan Carpenter @ 2015-10-22 19:22 UTC (permalink / raw)
To: punit vara
Cc: Larry Finger, devel, Greg KH, linux-kernel, Julia Lawall,
Sudip Mukherjee
On Fri, Oct 23, 2015 at 12:34:36AM +0530, punit vara wrote:
> I am working on linux-next .I have tried to rebase my local branch on
> your staging tree but I am getting too many conflict .and I have tried
> to clone your staging tree separately but due slow internet I am
> unable to clone it fully . Is there any other way I can get your
> staging tree by downloading ?
For a while, I had the worst internet of any kernel dev. I can help. :)
Do you have any complete kernel git repository? If you download it one
time then you just do a `git fetch` and `git checkout` after that.
Never do a `git pull`.
Downloading the linux kernel git repository the first time over bad
internet is a huge headache because if you lose the connection then you
have to restart. See if someone can post a .tar.gz of the kernel .git
directory on a webpage for you then you can download it bit by bit using
wget. Unpack it and do a `git reset --hard`.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-22 19:22 ` Dan Carpenter
@ 2015-10-22 20:03 ` punit vara
2015-10-22 20:34 ` Dan Carpenter
0 siblings, 1 reply; 18+ messages in thread
From: punit vara @ 2015-10-22 20:03 UTC (permalink / raw)
To: Dan Carpenter
Cc: Larry Finger, devel, Greg KH, linux-kernel, Julia Lawall,
Sudip Mukherjee
On Fri, Oct 23, 2015 at 12:52 AM, Dan Carpenter
<dan.carpenter@oracle.com> wrote:
> On Fri, Oct 23, 2015 at 12:34:36AM +0530, punit vara wrote:
>> I am working on linux-next .I have tried to rebase my local branch on
>> your staging tree but I am getting too many conflict .and I have tried
>> to clone your staging tree separately but due slow internet I am
>> unable to clone it fully . Is there any other way I can get your
>> staging tree by downloading ?
>
> For a while, I had the worst internet of any kernel dev. I can help. :)
>
> Do you have any complete kernel git repository? If you download it one
> time then you just do a `git fetch` and `git checkout` after that.
> Never do a `git pull`.
>
> Downloading the linux kernel git repository the first time over bad
> internet is a huge headache because if you lose the connection then you
> have to restart. See if someone can post a .tar.gz of the kernel .git
> directory on a webpage for you then you can download it bit by bit using
> wget. Unpack it and do a `git reset --hard`.
>
> regards,
> dan carpenter
>>git branch -a
master
* my_local_branch
old-local-1
remotes/gregkh/master
remotes/gregkh/staging-linus
remotes/gregkh/staging-next
remotes/gregkh/staging-testing
remotes/gregkh/test
remotes/linux-next/akpm
remotes/linux-next/akpm-base
remotes/linux-next/master
remotes/linux-next/stable
remotes/origin/HEAD -> origin/master
remotes/origin/master
>>git remote -v
gregkh http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
(fetch)
gregkh http://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
(push)
linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
(fetch)
linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
(push)
origin https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
(fetch)
origin https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
(push)
Above is my situation I have performed >> commands in terminal.
>>git checkout origin/master
>>git checkout -b experimental origin/master
>>git fetch gregkh
Am I doing the right thing to get staging changes in my experimental branch ?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-22 20:03 ` punit vara
@ 2015-10-22 20:34 ` Dan Carpenter
2015-10-24 7:11 ` punit vara
0 siblings, 1 reply; 18+ messages in thread
From: Dan Carpenter @ 2015-10-22 20:34 UTC (permalink / raw)
To: punit vara
Cc: devel, Greg KH, linux-kernel, Julia Lawall, Sudip Mukherjee,
Larry Finger
First fetch the changes, then check them out.
$ git fetch git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next
$ git checkout FETCH_HEAD
regards,
dan carpenter
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 4/4] Staging: rtl8712: fix warning for placing constant on the right side of test
2015-10-22 20:34 ` Dan Carpenter
@ 2015-10-24 7:11 ` punit vara
0 siblings, 0 replies; 18+ messages in thread
From: punit vara @ 2015-10-24 7:11 UTC (permalink / raw)
To: Dan Carpenter
Cc: devel, Greg KH, linux-kernel, Julia Lawall, Sudip Mukherjee,
Larry Finger
On Fri, Oct 23, 2015 at 2:04 AM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> First fetch the changes, then check them out.
>
> $ git fetch git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next
> $ git checkout FETCH_HEAD
>
> regards,
> dan carpenter
>
Thank you very much Dan.
Problem is solved :-)
@Greg I haven't found any warnings in your tree .You might applied
this patch before. So I am forward to create other patches
^ permalink raw reply [flat|nested] 18+ messages in thread